public List <ExpenseDetailDto> GetList(UserType roleId, int orgId) { var rlt = UnitOfWorkService.Execute(() => { var datas = _orgRepository.GetDatas <ExpenseDetailEntity>((int)roleId, orgId, DataType.ExpenseDetail); return(datas?.MapTo <List <ExpenseDetailDto> >()); }); return(rlt); }
public List <BillingDetailsDto> GetList(UserType roleId, int orgId) { var rlt = UnitOfWorkService.Execute(() => { var data = _orgRepository.GetDatas <BillingDetailsEntity>((int)roleId, orgId, DataType.BillingDetails); return(data?.MapTo <List <BillingDetailsDto> >()); }); return(rlt); }