public EmployeeListViewModel(IEmployees employees)
        {
            _employees = employees;

            EmployeesList = new ObservableCollection <Employee>(_employees.All());
        }
Beispiel #2
0
 public async Task <IActionResult> Index()
 {
     return(View(await _employees.All()));
 }