public ActionResult Login(FormCollection collection) { UserServiceModel user = new UserServiceModel(); user.Usuario = collection["Usuario"]; user.Contrasena = collection["Contrasena"]; bool loginOK = user.validateUserLogin(); if (loginOK) { return(RedirectToAction("Index")); } else { return(View()); } }