예제 #1
0
        public async Task <IActionResult> Index()
        {
            var view = new ShowEmployeesViewModel
            {
                Company   = await CompanyRepository.Get(1),
                Employees = await EmployeeRepository.Get()
            };

            return(View(view));
        }
예제 #2
0
 public ShowEmployeesView(tblEmployee employee)
 {
     InitializeComponent();
     DataContext = new ShowEmployeesViewModel(this, employee);
 }
예제 #3
0
 public ShowEmployees(tblManager manager)
 {
     InitializeComponent();
     DataContext = new ShowEmployeesViewModel(this, manager);
 }