Exemplo n.º 1
0
        public List <ListItemBO> GetEstablishments(GetListFilter filter, PaginationFilter pagination)
        {
            var dbEstablishments = _establishmentRepository.GetEstablishments(pagination.PageNumber, pagination.PageSize, filter.Name, filter.City);
            var establishments   = _mapper.Map <List <ListItemBO> >(dbEstablishments);

            foreach (var establishment in establishments)
            {
                StringHelper.ClearDescriptions(establishment.Descriptions);
            }
            return(establishments);
        }