You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've been using the lowercase-dashed-routes in a project for a while now and it works perfectly (thank you!).
we've just made a change to the project moving some code into an area. i've dropped in the code to XxxAreaRegistration.cs as:
context.Routes.Add("Customer_default", new LowercaseDashedRoute("Customer/{controller}/{action}/{id}", new RouteValueDictionary(new { action = "Index", id = UrlParameter.Optional }), new DashedRouteHandler()));
however, in my controllers i don't seem to be able to use:
return View(viewModel);
as it gives me 'The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:'
hi there,
i've been using the lowercase-dashed-routes in a project for a while now and it works perfectly (thank you!).
we've just made a change to the project moving some code into an area. i've dropped in the code to XxxAreaRegistration.cs as:
context.Routes.Add("Customer_default", new LowercaseDashedRoute("Customer/{controller}/{action}/{id}", new RouteValueDictionary(new { action = "Index", id = UrlParameter.Optional }), new DashedRouteHandler()));
however, in my controllers i don't seem to be able to use:
return View(viewModel);
as it gives me 'The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:'
i'm having to specify the path to the view:
return View("~/Areas/Customer/Views/Login/Index.cshtml", viewModel);
am i missing something?!
cheers,
jake
The text was updated successfully, but these errors were encountered: