public IActionResult Index() { string username = HttpContext.Session.GetString("username"); if (username != null && username != "") { return(View(sheetService.FilterByUser(username))); } return(RedirectToAction("Login", "Home")); }
public IActionResult Index() { string username = HttpContext.Session.GetString("username"); return(View(sheetService.FilterByUser(username))); }