public ActionResult Login(string User, string Pass) { try { var _User = _empleadoServicio.AccesoEmpleadoSistema(User, Pass); if (_User.Estado) { Session["Usuario"] = _User; return(RedirectToAction("Index", "Home")); } ViewBag.Error = "Ha ocurrido un error..."; return(View()); } catch (Exception) { ViewBag.Error = "Ha ocurrido un error..."; return(View()); } }