public List <TagDto> ImportarCsvViaApi(ParametrosTranspetroDto param) { try { return(ImportExtension.ImportarCsvViaApi(param)); } catch (WebException ex) { throw ex; } }
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; } }