Beispiel #1
0
 public ActionResult List()
 {
     try
     {
         var result = _staffBusiness.GetAll();
         return(View(result));
     }
     catch (Exception)
     {
         return(View());
     }
 }
Beispiel #2
0
 private void InitializeData()
 {
     _staffBusiness         = new StaffBusiness();
     staffs                 = _staffBusiness.GetAll();
     this.DataContext       = staffs;
     ListStaffs.ItemsSource = staffs;
 }