Пример #1
0
        public FIN_ApproverECLAIMModel Post([Bind]FIN_ApproverECLAIMModel model)
        {
            #region Validate

            string message = string.Empty;
            var checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData<FIN_ApproverECLAIMModel>(model, "FIN_ApproverECLAIM", ref message);
            if (!checkValidate)
            {
                model.ActionStatus = message;
                return model;
            }
            #endregion


            FIN_ApproverECLAIMService approverECLAIMService = new FIN_ApproverECLAIMService();
            var approverECLAIMEntity = model.CopyData<FIN_ApproverECLAIMEntity>();
            approverECLAIMService.AddApprovers(approverECLAIMEntity);
            return model;
        }
Пример #2
0
 public ActionResult DeleteApproverByProfile(string id)
 {
     var service1 = new FIN_ApproverECLAIMService();
     var result = service1.DeleteListApprover(id);
     var result1 = result.CopyData<FIN_ApproverECLAIMModel>();
     return Json(result1);
 }
Пример #3
0
 public ActionResult CheckAllowRemoveClaim(string id)
 {
     FIN_ApproverECLAIMService service = new FIN_ApproverECLAIMService();
     var isAllowRemoved = service.CheckAllowRemoveClaim(id);
     return Json(isAllowRemoved, JsonRequestBehavior.AllowGet);
 }