Vote count: 0 I call this action method using an ajax call: [AuthorizeCheckCreator] [HttpPost] [OutputCache(Location = OutputCacheLocation.None, NoStore = true)] public ActionResult Delete(Guid id) { // code.... retu Content("ok"); } I have created a custom AuthorizeAttribute for checking permission of the user (I wanted to make sure whether the user is owner the record or not): public class AuthorizeCheckCreatorAttribute : AuthorizeAttribute { public IRequest RequestService { get; set; } protected override bool AuthorizeCore(HttpContextBase httpContext) { RequestCheckUserViewModel request; if (httpContext.Request.IsAjaxRequest()) { var ajaxId = JsonConvert.DeserializeObject(System.Text.Enco...
ادامه مطلب