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