public async Task <IEnumerable <OfficeModel> > GetAllAsync() { var offices = await _repository.GetAllAsync(); var officeModel = _mapper.Map <IEnumerable <Office>, IEnumerable <OfficeModel> >(offices); return(officeModel); }
public async Task <IEnumerable <OfficeModel> > GetAllAsync() { var offices = await _repository.GetAllAsync(); var officeModel = _mapper.Map <IEnumerable <Office>, IEnumerable <OfficeModel> >(offices); return(officeModel); }