예제 #1
0
        public IEnumerable <CompanyDto> GetAllCompanies(Guid tenantid)
        {
            IEnumerable <Company>    companyList    = _unitOfWork.CompanyRepository.GetMany(company => company.TenantId == tenantid);
            IEnumerable <CompanyDto> companyDtoList = companyList.Select(company => CompanyMapper.EntityMapToDto(company)); // .ToList();

            return(companyDtoList);
        }