Update names part 2
This commit is contained in:
@@ -15,14 +15,14 @@ namespace WebAPI.Exports
|
||||
googleDriveHelper = _googleDriveHelper;
|
||||
googleSheetValues = _googleSheetValues;
|
||||
}
|
||||
public void export(Layer dataSet)
|
||||
public void export(Layer layer)
|
||||
{
|
||||
try
|
||||
{
|
||||
List<IList<object>> data = new List<IList<object>>() { new List<object>() { dataSet.Name, dataSet.Number } };
|
||||
foreach (Record dataRow in dataSet.Records)
|
||||
List<IList<object>> data = new List<IList<object>>() { new List<object>() { layer.Name!, layer.Number! } };
|
||||
foreach (Record record in layer.Records!)
|
||||
{
|
||||
data.Add(new List<object> { dataRow.Code, dataRow.Value });
|
||||
data.Add(new List<object> { record.Code!, record.Value });
|
||||
}
|
||||
|
||||
Google.Apis.Drive.v3.Data.File body = new Google.Apis.Drive.v3.Data.File();
|
||||
|
||||
Reference in New Issue
Block a user