Ejemplo n.º 1
0
        public ActionResult Register(Company company)
        {
            var isSuccess = CompanyRequests.Register(company);

            if (!isSuccess || !ModelState.IsValid)
            {
                return(View("Login"));
            }

            CurrentUser.User = CompanyRequests.GetCurrentUser();

            return(RedirectToAction("CompanyPlanes", "Planes"));
        }
Ejemplo n.º 2
0
 public ActionResult Login()
 {
     CompanyRequests.LogOff();
     CurrentUser.User = null;
     return(View());
 }