public ActionResult Inbox() { EmailDomainLogic email = new EmailDomainLogic(); int Currentpage = TempData["CurrentPage"].ToType <int>(0); TempData.Keep(); return(PartialView("_EmailList", email.GetInboxEmail(Currentpage))); }
public ActionResult LocationListUser(string id, Nullable <Guid> BusinessTypeGuid) { EmailDomainLogic email = new EmailDomainLogic(); int Currentpage = TempData["CurrentPage"].ToType <int>(0); TempData.Keep(); return(PartialView("_EmailList", email.GetInboxEmail(Currentpage))); }
public ActionResult Inbox(Nullable <Guid> EmailGuid, string EmailSearchQuery, string EmailSortOrder) { int Currentpage = 0; TempData["CurrentPage"] = null; if (EmailGuid == Guid.Empty) { 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(); } } EmailDomainLogic email = new EmailDomainLogic(); return(View(email.GetInboxEmail(Currentpage, EmailSearchQuery, EmailSortOrder))); }