Ejemplo n.º 1
0
        public JsonResult Delete(int id)
        {
            if (AuthenticationService.GetCurrentUser().User.Id == id)
            {
                var mess = string.Format(SystemMessageLookup.GetMessage("CannotDeleteYourself"));
                MasterFileService.ThrowCustomValidation(mess);
            }

            MasterFileService.DeleteById(id);
            return(Json(true, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
 public JsonResult Delete(int id)
 {
     MasterFileService.DeleteById(id);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }
Ejemplo n.º 3
0
 public ActionResult Delete(int id)
 {
     MasterFileService.DeleteById(id);
     MenuExtractData.Instance.RefershListData();
     return(Json(new { isSuccess = true }, JsonRequestBehavior.AllowGet));
 }