public ActionResult Download(string reference, string guid) { var context = new ContextImplement(); var controller = new Pleasanter.Controllers.BinariesController(); var file = controller.Download(context: context, reference: reference, guid: guid); if (file == null) { return(RedirectToAction("notfound", "errors")); } return(ConvertToFileStreamResult(file)); }