// GET: Deals/Details/5 public ActionResult Details(string code) { var deal = _dealProvider.GetDealByCode(code); if (deal == null) { return(NotFound()); } return(View(deal)); }
public IActionResult Get(string code) { var value = _dealProvider.GetDealByCode(code); if (value == null) { return(NotFound()); } return(Ok(value)); }
public void WhenIRequestTheDealByTheCode(string p0) { deal = provider.GetDealByCode(p0); }