public IActionResult AgregarUsuario(String user, String pass) { Users U = new Users() { LoginUsers = user, PassUsers = pass }; try { useradmin.AgregarUsuario(U); } catch (Exception ex) { ViewBag.MensajeError = ex.Message; return(View()); } return(RedirectToAction("Index")); }