public async Task <ActionResult <IEnumerable <EmployeeEquipmentItemDTO> > > GetEmployeeEquipmentItems() { var EEItems = await _employeeEquipmentItem.GetAllEmployeeEquipmentRecords(); if (EEItems == null) { return(NotFound()); } return(EEItems); }
// GET: EmployeeViewController public async Task <ActionResult> Index() { var allEmployees = await _employee.GetEmployees(); var allEquipment = await _equipmentItem.GetEquipmentItems(); var allEmployeeEquipment = await _employeeEquipmentItem.GetAllEmployeeEquipmentRecords(); var allData = new AllData() { EmployeeList = allEmployees, EquipmentList = allEquipment, EmployeeEquipmentList = allEmployeeEquipment }; return(View(allData)); }