public JsonResult ExecDeleteAjax(Action method) { var responce = AjaxResponseHelper.AjaxDeleteWrapper(() => { method(); }); return(Json(responce)); }
public JsonResult ExecPostAjax(Action method) { var responce = AjaxResponseHelper.AjaxPostWrapper(() => { method(); }, ModelState); return(Json(responce)); }
public JsonResult ExecGetAjax <T>(Func <T> method) { var responce = AjaxResponseHelper.AjaxGetWrapper(() => { return(method()); }); return(Json(responce, JsonRequestBehavior.AllowGet)); }
public JsonResult ExecGetAjax <T>(Func <T> method) { var responce = AjaxResponseHelper.AjaxGetWrapper(() => { return(method()); }); return(Json(responce)); }
public JsonResult ExecDeleteAjax(Action method) { var responce = AjaxResponseHelper.AjaxDeleteWrapper(() => { method(); }); return(Json(responce, JsonRequestBehavior.DenyGet)); }