How can I redirect to an ActionResult of a normal controller from .cshtml page of my Area's view?
I have a common login screen for normal/admin user. So based on the usertype json result will return the user type. So now I want to redirect a user based on the usertype.
If a user is normal user then I can redirect him using
"var redirectUrl = '@Url.Action("Index", "Home")';"
and then "window.location.href = redirectUrl;"
Above code is working fine.
But what to do in following case? If a user is an admin, then I want to redirect him to "Index" ActionResult of "HomeController" which is present in "Admin" area.