public IHttpActionResult GetPromos() { try { return(Ok(new { status = HttpStatusCode.OK, data = _promoService.GetPromos() })); } catch (Exception ex) { return(Ok(new { status = HttpStatusCode.InternalServerError, data = ex.Message })); } }
public async Task <ActionResult> List() { return(View(await PromoService.GetPromos())); }