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}");
     }
 }
Пример #2
0
        public ActionResult Index()
        {
            var StudentsList = _StudentBLL.GetAll();

            return(View(StudentsList));
        }