Example #1
0
        public async Task <IActionResult> Index()
        {
            var employeeList = await _employeeStore.GetAll();

            return(View(new IndexModel {
                HelloWorld = "Hallo Welt. Wie lauft es?", EmployeeList = employeeList
            }));
        }
Example #2
0
 private void InitializeCommands()
 {
     OpenSecondWindowCommand = new GenericCommand(
         () =>
     {
         App.ViewFactory.OpenWindow <SecondaryViewModel>();
     });
     SendMessageToSecondWindowCommand = new GenericCommand(() => {
         _messenger.Send <EmployeeEntity>(_employeeCollection?.FirstOrDefault());
     });
     GetEmployeeListCommand = new GenericCommand(
         async() =>
     {
         var employeeList   = await _employeeStore.GetAll();
         EmployeeCollection = new ObservableCollection <EmployeeEntity>(employeeList);
     });
 }