Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }