public UsuarioMembership(Usuario us) { id = us.Id; nombre = us.Nombre; apellidos = us.Apellidos; Rol = us.Rol.Nombre; Email =us.Email; login = us.Login; }
public ActionResult Index(Usuario model) { if (Membership.ValidateUser(model.Login, model.Password)) { TempData["horaLogin"] = DateTime.Now; FormsAuthentication.RedirectFromLoginPage(model.Login,false); return null; } return View(model); }