Exemple #1
0
        public ActionResult AttractionDetails(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            int?userId = AuthorizeUtil.GetUserId(service, User);

            if (userId == null)
            {
                return(RedirectToAction("Login", "Account"));
            }
            var history = service.GetAttractionHistory(userId.Value, id.Value);

            return(View(history));
        }