コード例 #1
0
        public IActionResult SelectComponentType(int componentTypeId)
        {
            ViewBag.Components     = _componentRepository.GetComponentsWithComponentType(componentTypeId);
            ViewBag.ComponentTypes = new SelectList(_componentTypeRepository.GetAllComponentTypes(), "ComponentTypeId", "ComponentName");

            return(View("Index"));
        }