public IActionResult Index() { if (this.IsLogedIn()) { var problems = problemsService.All(); return(View(new HomeViewModel() { Problems = problems }, "IndexLoggedIn")); } return(View()); }