public PartialViewResult SeeApplications(ApplicationPaging app) { var apps = ((IEnumerable <RegularApplication>)TempData["StudentAppRecovereds"]).OrderByDescending(x => x.Sl); TempData.Keep("StudentAppRecovereds"); app.TotalApps = apps.Count(); ViewData["Apps"] = apps.Skip((app.PageNo - 1) * app.PageSize).Take(10); ViewData["AppsInfo"] = app; return(PartialView("ReviewApplication")); }
public PartialViewResult MyApplications(ApplicationPaging app) { var apps = (IEnumerable <RegularApplication>)TempData["MyAppications"]; TempData.Keep("MyAppications"); app.TotalApps = apps.Count(); ViewData["MyApps"] = apps.Skip((app.PageNo - 1) * app.PageSize).Take(10); ViewData["MyAppsInfo"] = app; return(PartialView()); }
public PartialViewResult Seeletters(ApplicationPaging app) { var letters = (List <JoiningLetter>)TempData["AllLetters"]; TempData.Keep("AllLetters"); //var apps = ((IEnumerable<RegularApplication>)TempData["StudentAppRecovereds"]).OrderByDescending(x => x.Sl); TempData.Keep("StudentAppRecovereds"); app.TotalApps = letters.Count(); ViewData["Apps"] = letters.Skip((app.PageNo - 1) * app.PageSize).Take(10).ToList(); ViewData["AppsInfo"] = app; return(PartialView("PartsOfJoiningLetters")); }