//[NoCache] public ActionResult _AddList(int PageNumber) { int TotalPageNumber = 0; ViewBag.CurrentPageNumber = PageNumber; HttpCookie KeyCookie = Request.Cookies["_RRPS"]; HttpCookie UserIdCookie = Request.Cookies["_RRUID"]; HttpCookie UserNameCookie = Request.Cookies["_RRUN"]; HttpCookie PhoneNumberCookie = Request.Cookies["_RRUPn"]; HttpCookie OTPCookie = Request.Cookies["_ROTP_"]; Utility en = new Utility(); if (UserNameCookie != null && KeyCookie != null) { Int64 PhoneNumber = Convert.ToInt64(en.Decrypt(PhoneNumberCookie["_RRUPn"])); string PassWord = en.Decrypt(KeyCookie["_RRPS"].ToString()); List <AdDetailsModel> ListObj = new List <AdDetailsModel>(); InformationServiceWrapper Obj = new InformationServiceWrapper(); ListObj = Obj.GetUserAds(PhoneNumber, PassWord, PageNumber, out TotalPageNumber); if (ListObj != null) { ViewBag.AdList = ListObj; } } else if (UserNameCookie != null && OTPCookie != null) { Int64 PhoneNumber = Convert.ToInt64(en.Decrypt(PhoneNumberCookie["_RRUPn"])); Utility UtilObj = new Utility(); string OTP = UtilObj.Decrypt(OTPCookie["_ROTP_"]); List <AdDetailsModel> ListObj = new List <AdDetailsModel>(); InformationServiceWrapper Obj = new InformationServiceWrapper(); ListObj = Obj.GetUserAds(PhoneNumber, OTP, PageNumber, out TotalPageNumber); if (ListObj != null) { ViewBag.AdList = ListObj; } } ViewBag.TotalPageNumber = TotalPageNumber; return(PartialView("_AdList")); }