public EmployeeListViewModel(IEmployees employees) { _employees = employees; EmployeesList = new ObservableCollection <Employee>(_employees.All()); }
public async Task <IActionResult> Index() { return(View(await _employees.All())); }
public EmployeeListViewModel(IEmployees employees) { _employees = employees; EmployeesList = new ObservableCollection <Employee>(_employees.All()); }
public async Task <IActionResult> Index() { return(View(await _employees.All())); }