public static void UploadDirector(byte[] frame) { IDirectorDataAccess directorDA = new DirectorDataAccess(); IDirectorService directorService = new DirectorService(directorDA); IParser parser = new Parser(); var data = parser.GetDataObject(frame); Director dir = new Director { Name = data[0], BirthDate = DateTime.ParseExact(data[1], "yyyy-MM-dd", CultureInfo.InvariantCulture), Description = data[2], Genre = data[3], DirectedMovies = new List <string>() }; directorService.AddDirector(dir); }