// GET: ComponentType/Create
        public ActionResult Create()
        {
            var componentTypeModel = _ComponentTypeService.GetComponentTypeModel(null, assetCategoryId: (int)AssetCategories.Hardware);

            componentTypeModel.AssetCategoryId = (int)AssetCategories.Hardware;
            return(View(componentTypeModel));
        }
Esempio n. 2
0
 // GET: ComponentType/Create
 public ActionResult Create()
 {
     return(View(_ComponentTypeService.GetComponentTypeModel(null)));
 }