コード例 #1
0
        public async Task <IEnumerable <RecipientDTO> > GetAll()
        {
            var recipients = await _repo.GetAll();

            var recipientsDTO = recipients.Select(rec => _mapper.Map <RecipientDTO>(rec));

            return(recipientsDTO);
        }
コード例 #2
0
 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));
        }