public ActionResult Register(Login user)
 {
     if(ModelState.IsValid){
         using(OurDBContext db=new OurDBContext())
         {
             db.UserAccout.Add(user);
             db.SaveChanges();
         }
         ModelState.Clear();
         ViewBag.Message = user.Name + " " + "Registrado exitosamente";
     }
     return View();
 }
 public ActionResult Login(Login user)
 {
     using (OurDBContext db = new OurDBContext())
     {
         var usr = db.UserAccout.Where(u => u.Email == user.Email && u.Password == user.Password);
         if(usr!=null)
         {
             Session["UserID"] = user.UserID.ToString();
             Session["Email"] = user.Email.ToString();
             return RedirectToAction("LoggedIn");
         }
         else
         {
             ModelState.AddModelError("", "Email o Contraseña es Incorrecto. ");
         }
         return View();
     }
 }