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());
        }
Пример #2
0
 public IActionResult Index()
 {
     if (string.IsNullOrEmpty(HttpContext.Session.GetString("Session1")))
     {
         return(RedirectToAction("UserLogin", "Login"));
     }
     return(View(feetype.GetAll()));
 }