public IActionResult Skills() { EditCoreKbSkillViewModel model = _coreKbSkillViewModelFactory.PrepareCoreKbSkillViewModel(); return(View(model)); }
public EditCoreKbSkillViewModel PrepareCoreKbSkillViewModel() { var model = new EditCoreKbSkillViewModel(); //model.ListOfSkillTypes.Insert(0, new SelectListItem() //{ // Text = "Select Skill Type", // Value = "0" //}); foreach (var item in _coreKnowledgeBaseService.ListSkillTypes()) { model.ListOfSkillTypes.Add(new SelectListItem() { Text = item.CoreKbSkillTypeName, Value = item.Id.ToString() }); } //model.ListOfSkillCategories.Insert(0, new SelectListItem() //{ // Text = "Select Category", // Value = "0" //}); return(model); }