private void AddPosition_Clicked(object sender, RoutedEventArgs e) { positionModel.NewPosition = new Position(); positionModel.NewPosition.JobTitle = NewPosition.Text; sqlConnections.AddPosition(positionModel.NewPosition.JobTitle); this.Close(); }
private void AddPosition_Clicked(object sender, RoutedEventArgs e) { SQLConnections sqlConnections = new SQLConnections(); string newPosition = NewPosition.Text; sqlConnections.AddPosition(newPosition); int position = sqlConnections.FindPositionID(newPosition); this.Close(); //@@identityscope }