Changing for make everything work again

This commit is contained in:
2018-12-14 18:02:30 +01:00
parent 191daf8218
commit 5bdc0dcba7
8 changed files with 20 additions and 17 deletions

View File

@@ -47,6 +47,8 @@ namespace SeniorAssistant.Controllers
[Route("User/{User}")]
public IActionResult SingleUser(string user)
{
if(session.GetString("username") == null)
return RedirectToAction("Index");
return View("data", user);
}
}