<mvcSiteMapNode title="Registration" url="/50" controller="Account" action="Register" description="">
<mvcSiteMapNode title="Admin" url="/55" description="">
<mvcSiteMapNode title="user" controller="User" action="Index" description=""/>
<mvcSiteMapNode title="PostDetails" controller="PostDetails" action="Index" description=""/>
</mvcSiteMapNode>
</ <mvcSiteMapNode>
here when I click on the registration it will move to the registration form and in that, it will ask whether it is user or not and if it is only the user part is visible to the user and needs to hide admin part this is my routeconfig public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional } ); }can anyone please explain to me how to do this?
here when I click on the registration it will move to the registration form and in that, it will ask whether it is user or not and if it is only the user part is visible to the user and needs to hide admin part
this is my routeconfig
public class RouteConfig {
public static void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
); }
can anyone please explain to me how to do this?