public static void ImportScreenings() { var screeningsJson = File.ReadAllText(DataPaths.ScreeningsJson); var screeningDtos = JsonConvert.DeserializeObject <IEnumerable <ScreeeningDto> >(screeningsJson); ScreeningImportService.ImportScreenings(screeningDtos); }
public JSONImport() { this.screeningImportService = new ScreeningImportService(); this.actorImportService = new ActorImportService(); this.categoryImportService = new CategoryImportService(); this.seatImportService = new SeatImportService(); this.townImportService = new TownImportService(); }