public ActionResult AdViewStatistics(int PageNumber) { HttpCookie nameCookie = Request.Cookies["_RRAUN"]; if (nameCookie != null) { int TotalPageNumber = 0; ViewBag.CurrentPageNumber = PageNumber; List <AdViewStatisticsModel> UserList = new List <AdViewStatisticsModel>(); InformationServiceWrapper Obj = new InformationServiceWrapper(); UserList = Obj.FetchAdViewsStatistics(PageNumber, out TotalPageNumber); ViewBag.UserList = UserList; ViewBag.TotalPageNumber = TotalPageNumber; return(View()); } else { return(RedirectToAction("Login", "Admin")); } }