public async Task <ActionResult <OfferViewModel> > GetAsync(int id) { _logger.LogDebug("Get {0}", id); var Offer = await _repository.GetOfferAsync(id); if (Offer == null) { return(NotFound()); } return(Ok(_mapper.Map <OfferViewModel>(Offer))); }
public async Task <ActionResult <OfferViewModel> > GetAsync(int id) { _logger.LogDebug("Get {0}", id); var Offer = await _repository.GetOfferAsync(id); if (Offer == null) { return(NotFound()); } return(Ok(_mapper.Map <OfferViewModel>(Offer))); }