public ActionResult AttachDocument(string versionNumber, string documentName, string contentType) { DocumentSession.PutAttachment(versionNumber.MakeCustomDocumentKey(documentName), contentType, Request.InputStream); return(new EmptyResult()); }