public Sys_ConfigProcessApproveModel Post([Bind] Sys_ConfigProcessApproveModel model)
 {
     #region Validate
     string message       = string.Empty;
     var    checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData <Sys_ConfigProcessApproveModel>(model, "Sys_ConfigProcessApprove", ref message);
     if (!checkValidate)
     {
         model.ActionStatus = message;
         return(model);
     }
     #endregion
     ActionService service = new ActionService(UserLogin);
     return(service.UpdateOrCreate <Sys_ConfigProcessApproveEntity, Sys_ConfigProcessApproveModel>(model));
 }
        public Sys_ConfigProcessApproveModel GetById(Guid id)
        {
            string        status  = string.Empty;
            var           model   = new Sys_ConfigProcessApproveModel();
            ActionService service = new ActionService(UserLogin);
            var           entity  = service.GetByIdUseStore <Sys_ConfigProcessApproveEntity>(id, ConstantSql.hrm_sys_sp_get_ConfigProcessApproveById, ref status);

            if (entity != null)
            {
                model = entity.CopyData <Sys_ConfigProcessApproveModel>();
            }
            model.ActionStatus = status;
            return(model);
        }