public async Task <IEnumerable <SpecialtyResource> > GetAllAsync() { var specialties = await _specialtyService.ListAsync(); var resurces = _mapper .Map <IEnumerable <Specialty>, IEnumerable <SpecialtyResource> >(specialties); return(resurces); }
public async Task <IEnumerable <SpecialtyResource> > GetAllAsync() { var specialties = await _specialtyService.ListAsync(); var resurces = _mapper .Map <IEnumerable <Specialty>, IEnumerable <SpecialtyResource> >(specialties); return(resurces); }