public ActionResult RemoveGroup(Guid id) { _roleGroupService.Remove(id); return(Json(new AjaxResponse { Succeeded = true, ShowMessage = false, RedirectUrl = Url.Action("Index") }, JsonRequestBehavior.AllowGet)); }
public ActionResult RemoveGroup(Guid id) { return(HttpHandleExtensions.AjaxCallGetResult(() => { _roleGroupService.Remove(id); this.JsMessage = MessagesResources.Remove_Success; return Json(new AjaxResponse { Succeeded = true, RedirectUrl = Url.Action("Index") }, JsonRequestBehavior.AllowGet); })); }