public static void ImportTowns() { var townsJson = File.ReadAllText(DataPaths.TownsJson); var townDtos = JsonConvert.DeserializeObject <IEnumerable <TownDTO> >(townsJson); TownImportService.ImportTowns(townDtos); }
public JSONImport() { this.screeningImportService = new ScreeningImportService(); this.actorImportService = new ActorImportService(); this.categoryImportService = new CategoryImportService(); this.seatImportService = new SeatImportService(); this.townImportService = new TownImportService(); }