Ejemplo n.º 1
0
        public IActionResult Get(string id)
        {
            Donation donationDb       = _donation.Get(id);
            var      donationResponse = _mapper.Map <DonationResponse>(donationDb);

            return(Ok(donationResponse));
        }
Ejemplo n.º 2
0
        public IActionResult GetDonation(int id)
        {
            var donationEntity = _donationRepository.Get(id);

            if (donationEntity == null)
            {
                return(NotFound());
            }

            var donationDto = _mapper.Map <DonationDto>(donationEntity);

            return(Ok(donationDto));
        }
Ejemplo n.º 3
0
        public async Task <DonationDTO> GetById(int id, bool includeDeleted = false)
        {
            var donation = await donationRepository.Get(id, Session, includeDeleted);

            return(donation.MapTo <DonationDTO>());
        }
Ejemplo n.º 4
0
 public Donation_Details Get(int id)
 {
     return(_IDonationRepo.Get(id));
 }