public async Task <IEnumerable <AllergyModel> > Handle(GetAllAllergiesQuery request, CancellationToken cancellationToken) { var allergies = await _repository.GetAllergiesAsync(); return(allergies.Select(a => new AllergyModel() { Id = a.Id, Name = a.Name })); }