public ActionResult Index() { try { if (User.Identity.IsAuthenticated) { return(View("Index", _convertService.GetWeekDayViewModels(User.Identity.GetUserId()))); } else { return(RedirectToAction("Login", "Account")); } } catch (Exception) { return(View("Error")); } }