Exemplo n.º 1
0
 // GET: WorkoutManager
 public ActionResult Index()
 {
     if (IsAuthenticated)
     {
         DashboardView model = new DashboardView();
         User          user  = Session[UserKey] as User;
         model.User     = user;
         model.Workouts = _dal.GetAllWorkoutByUserId(user.Id);
         return(GetAuthenticatedView("Index", model));
     }
     else
     {
         return(RedirectToAction("Login", "User"));
     }
 }