I have just started the mvc 3 with razor engine, added 1st view as addcountry, it's controller,
Controller code is here, but debug is not coming at this index, where was i mistaken, should i change the route ?
public ActionResult Index()
{
return View();
}
the image of resource not found is here,
http:
if i write path as
http:
then it opens the page,but i want to open the page without any manually writing of path.
I added view after controller & by right click below code & then click on add view
public ActionResult Index()
{
return View();
}
My route
is
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"",
"{controller}/{action}/{id}",
new { controller = "AddCountry", action = "Index", id = UrlParameter.Optional }
);
}