public ActionResult Create() { if (!_usuarioServicio.VerificarExisteUsuario()) { return(View()); } else { if (HttpContext.Session.GetString("Session") == null) { return(RedirectToAction("Login", "Usuario")); } else { return(View()); } } }
public ActionResult Login() { if (_usuarioServicio.VerificarExisteUsuario()) { if (HttpContext.Session.GetString("Session") != null) { HttpContext.Session.Remove("Session"); return(View()); } else { return(View()); } } else { return(RedirectToAction("Create", "Empleado")); } }