public ActionResult GetDeal() { try { return(repository.GetDeal()); } catch (Exception ex) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest, ex.Message)); } }
public async Task <IHttpActionResult> Get(string dealId) { DealResponseViewModel deal = await _repo.GetDeal(dealId); return(Ok(deal)); }