public async Task <IList <NodeInstance> > Import([FromBody] ImportData instance)
        {
            var data = await _notifyDriver.Import(instance.Node, instance.FileName);

            if (System.IO.File.Exists(instance.FileName))
            {
                System.IO.File.Delete(instance.FileName);
            }

            return(data);
        }
Пример #2
0
 public async Task <IList <NodeInstance> > Import([FromBody] ImportData instance)
 {
     return(await _notifyDriver.Import(instance.Node, instance.FileName));
 }