Example #1
0
 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));
        }