private void AddOrder_Click(object sender, RoutedEventArgs e) { GoodDTO good = new GoodDTO { Height = Int32.Parse(HeightTextBox.Text), Weight = Int32.Parse(WeightTextBox.Text), Width = Int32.Parse(WidthTextBox.Text), Name = NameTextBox.Text }; GoodService goodService = new GoodService(); goodService.Create(good); MessageBox.Show("Order added"); }