public JsonResult Problem_Delete(Guid problemID) { GeneralResponse response = new GeneralResponse(); #region Access Check bool hasPermission = GetEmployee().IsGuaranteed("Problem_Delete"); if (!hasPermission) { response.ErrorMessages.Add("AccessDenied"); return(Json(response, JsonRequestBehavior.AllowGet)); } #endregion response = _problemService.DeleteProblem(new DeleteRequest() { ID = problemID }); return(Json(response, JsonRequestBehavior.AllowGet)); }