public Ins_ChildSickModel GetById(Guid id) { string status = string.Empty; var model = new Ins_ChildSickModel(); var service = new ActionService(UserLogin); var entity = service.GetByIdUseStore<Ins_ChildSickEntity>(id, ConstantSql.hrm_ins_sp_get_ChildSickById, ref status); if (entity != null) { model = entity.CopyData<Ins_ChildSickModel>(); } model.ActionStatus = status; return model; }
public ActionResult GetChildSickList([DataSourceRequest] DataSourceRequest request, Ins_ChildSickModel model) { return GetListDataAndReturn<Ins_ChildSickModel, Ins_ChildSickEntity, Ins_ChildSickModel>(request, model, ConstantSql.hrm_ins_sp_get_ChildSick); }