public JsonResult Change_CourierStatus(Guid CourierID, string ExpertComment, int CourierStatuse, Guid?CourierEmployeeID) { GeneralResponse response = new GeneralResponse(); #region Access Check EmployeeView employee = GetEmployee(); bool hasPermission = employee.IsGuaranteed("Courier_CangeStatus"); if (!hasPermission) { response.ErrorMessages.Add("AccessDenied"); return(Json(response, JsonRequestBehavior.AllowGet)); } #endregion Guid courierEmployeeID = CourierEmployeeID == null ? Guid.Empty : (Guid)CourierEmployeeID; response = _courierService.DoCourierAction(CourierID, CourierStatuse, ExpertComment, courierEmployeeID, employee.ID); return(Json(response, JsonRequestBehavior.AllowGet)); }