private void Button_Click(object sender, RoutedEventArgs e) { try { DtgStudents.ItemsSource = _bll.GetAll(); } catch (Exception exception) { MessageBox.Show($"Could not get the students. {exception.Message}"); } }
public ActionResult Index() { var StudentsList = _StudentBLL.GetAll(); return(View(StudentsList)); }