public static void ImportCategories() { var categoriesJson = File.ReadAllText(DataPaths.CategoriesJson); var categorysDtos = JsonConvert.DeserializeObject <IEnumerable <CategoryDTО> >(categoriesJson); CategoryImportService.ImportCategories(categorysDtos); }
public JSONImport() { this.screeningImportService = new ScreeningImportService(); this.actorImportService = new ActorImportService(); this.categoryImportService = new CategoryImportService(); this.seatImportService = new SeatImportService(); this.townImportService = new TownImportService(); }