public async Task <IEnumerable <RecipientDTO> > GetAll() { var recipients = await _repo.GetAll(); var recipientsDTO = recipients.Select(rec => _mapper.Map <RecipientDTO>(rec)); return(recipientsDTO); }
public Recipient Handle(GetRecipientByEmail query) { return(_recipientRepository.GetAll() .Where(x => x.Email == query.Email) .FirstOrDefault()); }
// GET: HealthInsuranceMarketPlace public ActionResult Index() { var a = _recipientRepository.GetAll().ToList(); return(View(a)); }