public async Task <IActionResult> GetBestDealAsync(BestOfferRequest request) { var bestDeal = await _offersService.GetBestDealAsync(request); if (bestDeal == null) { return(NotFound("No correct deal found")); } return(Ok(bestDeal)); }
public async Task <IActionResult> GetBestDealAsync(BestOfferRequest request) { var bestDeal = await _offersService.GetBestDealAsync(request); if (bestDeal == null) { return(NotFound("No correct deal found")); } return(Ok(bestDeal)); }