Esempio n. 1
0
        public ActionResult Monitor()
        {
            var loggedUser = UsersUtilities.GetLoggedUser();

            if (loggedUser == null)
            {
                return(Redirect("~/User/Login"));
            }
            if (loggedUser.Servers.Count == 0)
            {
                return(RedirectToAction("Register"));
            }



            return(View(ServerUtilities.GetAllServers(loggedUser)));
        }