Exemplo n.º 1
0
        public ActionResult VerifyAds(int PageNumber)
        {
            HttpCookie nameCookie = Request.Cookies["_RRAUN"];
            InformationServiceWrapper objservice = new InformationServiceWrapper();
            DropDownWrapperModel      ModelObj   = new DropDownWrapperModel();

            ModelObj             = objservice.GetDropDownValues();
            ViewBag.DistrictLIst = ModelObj.District;
            ViewBag.MandalList   = ModelObj.Mandal;

            if (nameCookie != null)
            {
                int TotalPageNumber = 0;
                ViewBag.CurrentPageNumber = PageNumber;
                List <AdDetailsModel>     AdList = new List <AdDetailsModel>();
                InformationServiceWrapper Obj    = new InformationServiceWrapper();
                AdList                  = Obj.FetchAdDetailsToVerify(PageNumber, out TotalPageNumber);
                ViewBag.Adlist          = AdList;
                ViewBag.TotalPageNumber = TotalPageNumber;
                return(View());
            }
            else
            {
                return(RedirectToAction("Login", "Admin"));
            }
        }