public void PutUser(User user) { _cache.Push(user.Email, user); ShopEntities db = new ShopEntities(); db.User.Add(user); }
protected void Save_Onclick(object sender, EventArgs e) { User h = new User(); h.First_Name = txtFirstName.Text; h.Last_Name = txtLastName.Text; h.Email = TextEmail.Text; h.Password = TextPassword.Text; ShopEntities dbShop = new ShopEntities(); dbShop.User.Add(h); dbShop.SaveChanges(); }