/// <summary> /// Loads this instance. /// </summary> private void Load() { try { ShowMessage("Loading..."); Employees = new ObservableCollection <IBaseModel>(); // get customers serviceAgent.GetEmployees((p) => { foreach (var item in p) { Employees.Add(item); } RaisePropertyChanged("Employees"); ShowMessage(String.Empty); }); } catch (Exception ex) { ShowMessage(ex.Message); } }
public IActionResult Index() { var model = adventureWorksRepository.GetEmployees(1, PageSize); return(View(model)); }