Add( new AuthorizeAttribute() { Roles = "Admin, SuperUser" });. In .Net Core, we can add the filters globally by adding it to the MvcOptions.
確定! 回上一頁