Hello ,
You have to Configure the Router Section . Go to Router Section and Set the
Controller
and
Action
Method according to your requirement. set it lik this way
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new
{
controller = "hello",
action = "Index",
id = UrlParameter.Optional
}
);
}
thanks