Example #1
0
        public JsonResult Courier_Update(EditCourierRequest request)
        {
            GeneralResponse response = new GeneralResponse();

            //#region Access Check

            //bool hasPermission = GetEmployee().IsGuaranteed("Courier_Update");
            //if (!hasPermission)
            //{
            //    response.ErrorMessages.Add("AccessDenied");
            //    return Json(response, JsonRequestBehavior.AllowGet);
            //}

            //#endregion

            response = _courierService.EditCourier(request, GetEmployee().ID);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }