public async Task <IActionResult> Index() { var view = new ShowEmployeesViewModel { Company = await CompanyRepository.Get(1), Employees = await EmployeeRepository.Get() }; return(View(view)); }
public ShowEmployeesView(tblEmployee employee) { InitializeComponent(); DataContext = new ShowEmployeesViewModel(this, employee); }
public ShowEmployees(tblManager manager) { InitializeComponent(); DataContext = new ShowEmployeesViewModel(this, manager); }