Exemplo n.º 1
0
        public async Task <IEnumerable <OfficeModel> > GetAllAsync()
        {
            var offices = await _repository.GetAllAsync();

            var officeModel = _mapper.Map <IEnumerable <Office>, IEnumerable <OfficeModel> >(offices);

            return(officeModel);
        }