public IActionResult Index() { BillIndexViewModel bivm = new BillIndexViewModel { Bills = _billRepository.GetAllWithEmployees(), Employees = _employeeRepository.GetAllSorted() }; return(View(bivm)); }
public IActionResult Filter(int employeeId) { BillIndexViewModel bivm = new BillIndexViewModel { Bills = _billRepository.GetAllByEmployee(employeeId), Employees = _employeeRepository.GetAllSorted() }; TempData["filteredEmployeeId"] = employeeId; return(View(nameof(Index), bivm)); }