Ejemplo n.º 1
0
 public List <TagDto> ImportarCsvViaApi(ParametrosTranspetroDto param)
 {
     try
     {
         return(ImportExtension.ImportarCsvViaApi(param));
     }
     catch (WebException ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public List <TagDto> ImportCsv()
 {
     try
     {
         var    projectPath = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent.FullName;
         string filePath    = Path.Combine(projectPath, "Resources\\RecordExport.csv");
         return(MapTagCsv(ImportExtension.ImportCsv(4, new StreamReader(filePath))));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }