public ActionResult EditDocumentInGoogleDocs(int id) { Audit audit = driveRepository.FindById(id); string documentName = docRepository.GenerateDocument(audit); // Word Dcument string documentId = driveRepository.FileUpload(documentName); // Google Docs Document auditRepository.UpdateOnlyAudit(id, documentId); //Process.Start("https://docs.google.com/document/d/" + documentId + "/edit"); // Open Document return(RedirectToAction("Index")); }
public ActionResult UploadFile(HttpPostedFileBase file) { driveRepository.FileUpload(file); return(RedirectToAction("Index")); }