Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult RestaurantReview()
        {
            if (TempData["IspopUp"] != null)
            {
                Success("Review added successfully");
            }

            int Currentpage = 0;

            TempData["CurrentPage"] = null;

            if (Request.Url.AbsoluteUri.Contains('?') && Request.Url.AbsoluteUri.Contains("page"))
            {
                TempData["CurrentPage"] = Request.Url.AbsoluteUri.Split('&')[1].Split('=')[1].Split('&')[0];
                Currentpage             = TempData["CurrentPage"] == null ? 0 : Convert.ToInt32(TempData["CurrentPage"]);
                TempData.Keep();
            }

            UserDomainLogic userDomainLogic = new UserDomainLogic();

            return(View(userDomainLogic.GetMyReviewBuyer(UserVariables.LoggedInUserGuid, Currentpage)));
        }