// [OutputCache(Duration = 3600,VaryByParam = "id")] public ActionResult Details(int id) { var userId = System.Web.HttpContext.Current.User.Identity.GetUserId(); var model = _billsService.GetBill(id, userId); return(View(model)); }
public IHttpActionResult GetBillModel(int id) { Bill billModel = billService.GetBill(id); if (billModel == null) { return(NotFound()); } return(Ok(billModel)); }