private void delQuiz(object sender, RoutedEventArgs e) { mainDal m = new mainDal(); string val = delVal.Text; int id = 0; try { id = int.Parse(val); } catch { delVal.Text = "Enter Valid id"; } m.deleteQuiz(id); }
private void delQuiz(object sender, RoutedEventArgs e) { mainDal m = new mainDal(); string val = delVal.Text; int id = 0; try { id = int.Parse(val); } catch { delVal.Text = "Enter Valid id"; } m.deleteQuiz(id); }