public JsonResult ChangeCode_Center(Guid ID, Guid?CenterID) { GeneralResponse response = new GeneralResponse(); #region Access Check bool hasPermission = GetEmployee().IsGuaranteed("Code_Update"); if (!hasPermission) { response.ErrorMessages.Add("AccessDenied"); return(Json(response, JsonRequestBehavior.AllowGet)); } #endregion response = _codeService.ChangeCenter(ID, CenterID == null?Guid.Empty:(Guid)CenterID); return(Json(response, JsonRequestBehavior.AllowGet)); }