public static void ImportSeats() { var seatsJson = File.ReadAllText(DataPaths.SeatsJson); var seatsDtos = JsonConvert.DeserializeObject <IEnumerable <SeatDto> >(seatsJson); SeatImportService.ImportSeats(seatsDtos); }
public JSONImport() { this.screeningImportService = new ScreeningImportService(); this.actorImportService = new ActorImportService(); this.categoryImportService = new CategoryImportService(); this.seatImportService = new SeatImportService(); this.townImportService = new TownImportService(); }