Пример #1
0
        // [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));
        }
Пример #2
0
        public IHttpActionResult GetBillModel(int id)
        {
            Bill billModel = billService.GetBill(id);

            if (billModel == null)
            {
                return(NotFound());
            }

            return(Ok(billModel));
        }