public ActionResult Login(User user)
        {
            var result = db.Usuarios.Where(x => x.UserName == user.UserName && x.Password == user.Password);
            if (result.Count() > 0)
            {
                return RedirectToAction("Index", "Invernadero");

            }else {
            TempData["Failed"] = true;
            return RedirectToAction("Index");
            }
        }
 public ActionResult PostRegister(User user)
 {
     db.Usuarios.Add(user);
     db.SaveChanges();
     return RedirectToAction("Index", "Invernadero");
 }