Esempio n. 1
0
        public async Task <IActionResult> GetAllOffers()
        {
            List <Offer> offers = await _repo.GetAllOffers();

            List <OfferForReturnDto> offersToReturn = _mapper.Map <List <Offer>, List <OfferForReturnDto> >(offers);

            return(Ok(offersToReturn));
        }