예제 #1
0
        public async Task <ActionResult <IEnumerable <EmployeeEquipmentItemDTO> > > GetEmployeeEquipmentItems()
        {
            var EEItems = await _employeeEquipmentItem.GetAllEmployeeEquipmentRecords();

            if (EEItems == null)
            {
                return(NotFound());
            }
            return(EEItems);
        }
예제 #2
0
        // 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));
        }