public void AddResponseDocument(string requestId, string filePath) { BuildResponseDocuments(); string mimeType = GetMimeType(filePath); Document document = new Document(SASModelProcessor.NewGuid().ToString("D"), mimeType, filePath); IList <Document> responseDocumentList = responseDocument.ToList <Document>(); responseDocumentList.Add(document); responseDocument = responseDocumentList.ToArray <Document>(); }
public void AddResponseDocument(string requestId, string filePath) { responseDocuments.Add(new InternalDocument(new Document(SASModelProcessor.NewGuid().ToString(), GetMimeType(filePath), Path.GetFileName(filePath)), filePath, new FileInfo(filePath).Length)); status.Code = RequestStatus.StatusCode.AwaitingResponseApproval; }