public IActionResult Index() { if (string.IsNullOrEmpty(HttpContext.Session.GetString("Session1"))) { return(RedirectToAction("UserLogin", "Login")); } var resyear = (from k in _FeeType.GetAll() select k.FeeYear).Distinct(); TempData["Feeyear"] = new SelectList(resyear); ViewData["Feetype"] = new SelectList(_FeeType.GetAll().ToList(), "FTId", "Feetype1"); return(View()); }
public IActionResult Index() { if (string.IsNullOrEmpty(HttpContext.Session.GetString("Session1"))) { return(RedirectToAction("UserLogin", "Login")); } return(View(feetype.GetAll())); }