private async void OKButton_Click(object sender, RoutedEventArgs e) { ServiceUtils context = new ServiceUtils(); await context.AddGrade(_grade.Record); this.DialogResult = true; }
private void OKButton_Click(object sender, RoutedEventArgs e) { ServiceUtils utils = new ServiceUtils(); utils.AddGrade(_grade.Record); this.DialogResult = true; }