public void AddIndusrtyCategory(CoreKbIndustryCategory Entity) { try { _coreKbIndustryCategoryRepository.Insert(Entity); } catch (Exception e) { throw new IntegratorException("Error Adding Category.", e.InnerException); } }
public IActionResult AddIndusrtyCategroy([FromBody] DropDownRequest model) { var entity = new CoreKbIndustryCategory() { CoreKbIndustryCategoryName = model.TEXT }; try { _coreKnowledgeBaseService.AddIndusrtyCategory(entity); } catch (IntegratorException e) { throw e.InnerException; } return(Json(entity)); }
public bool DeleteCategory(CoreKbIndustryCategory Entity) { throw new NotImplementedException(); }