C# API Controller Custom Filter with HttpActionContext Redirect to controller?
问题 Is there a way to create a custom filter with an API controller to redirect to a MVC controller? After looking around a bit his is what i have. public class APIHasOneOfThesePermissions : ActionFilterAttribute { protected UserManager<ApplicationUser> UserManager { get; set; } private SAMPortal.DAL.SAMPortalContext db = new DAL.SAMPortalContext(); public string[] Permissions { get; set; } public APIHasOneOfThesePermissions(string[] Permissions) { this.UserManager = new UserManager