private DocumentDto UpdateDocumentFile(UpdateFileToDocumentCommand cmd, FileInfo file, string text) { SaveTextFile(file, text); return(repository .UpdateDocumentFile(cmd.DocumentId, file.Name, IssueAnalizer.ObtenerAsunto(text)) .ToDocumentDto()); }
DocumentDto CreateDocument(CreateDocumentCommand x, FileInfo fileInfo, string text) { SaveTextFile(fileInfo, text); var document = x.ToDocument(); return(_repository .CreateClassifiedDocument(document, IssueAnalizer.ObtenerAsunto(text), fileInfo.Name) .ToDocumentDto()); }