Example #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            rentcarEntities db = new rentcarEntities();
            Users           us = db.Users.Find(SecurityContext.idClient);

            us.Name        = Name.Text;
            us.MiddlName   = MiddlName.Text;
            us.SecondName  = SecondName.Text;
            us.PhoneNumber = Phone.Text;
            us.Login       = Login.Text;
            us.Password    = Password.Text;

            db.Users.Create();
            db.SaveChanges();
            ClientList re = new ClientList();

            this.Hide();
            re.Show();
        }