public async Task StoreDataset(DatasetToSaveDTO dataset) { await _repository.StoreDatasetAsync(new Dataset { Id = Guid.NewGuid(), Name = dataset.Name, Records = dataset.Records.Select(record => new Record { Inputs = record.Inputs, Output = record.Output }).ToArray() }); }