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