// load component types with API and populate database protected List <ComponentType> LoadComponentTypes() { List <ComponentType> componentTypes = swtoreliteAPI.LoadComponentTypes(); componentTypeRepo.InsertAll(componentTypes); return(componentTypes); }