How to redirect user to another Url from MVC Custom Router Handler?
问题 I am working with CustomMvcRouterHandler, Based on some logic I just want to redirect user to another Url from CustomHandler. public class CustomMvcRouterHandler : IRouteHandler { public IHttpHandler GetHttpHandler(RequestContext requestContext) { if (requestContext.HttpContext.Request.IsAuthenticated) { if (logic is true) { string OrginalUrl = "/Home/AboutUs"; // redirect Url = "/Home/CompanyProfile"; return new MvcHandler(requestContext); } } return new MvcHandler(requestContext); } } How