Esempio n. 1
0
 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()
     });
 }