public void ImportCinemasCollection(CinemaDtoCollection cinemaDtos) { foreach (var cinemaDto in cinemaDtos.CinemaDtos) { try { ImportCinema(cinemaDto); } catch (Exception e) { Console.WriteLine(e.Message); } } }
public void ImportCinemas() { CinemaDtoCollection cinemaDtos = cinemaImportService.DeserializeCinemas(DataPaths.CinemasXml); cinemaImportService.ImportCinemasCollection(cinemaDtos); }