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