Example #1
0
        /// <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);
            }
        }
Example #2
0
        public IActionResult Index()
        {
            var model = adventureWorksRepository.GetEmployees(1, PageSize);

            return(View(model));
        }