Exemple #1
0
        public async Task <IEnumerable <EstateResource> > GetAllAsync()
        {
            var estates = await _estateService.ListAsync();

            var resource = _mapper.Map <IEnumerable <Estate>, IEnumerable <EstateResource> >(estates);

            return(resource);
        }