示例#1
0
        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());
 }
示例#3
0
        // GET: HealthInsuranceMarketPlace
        public ActionResult Index()
        {
            var a = _recipientRepository.GetAll().ToList();

            return(View(a));
        }