Exemple #1
0
        public ActionResult TenantImageLogo()
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishBinariesController();
            var file       = controller.TenantImageLogo(context: context);

            return(file.ToFileContentResult());
        }
Exemple #2
0
        public ActionResult SiteImageIcon(string reference, long id)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishBinariesController();
            var file       = controller.SiteImageIcon(context: context, reference: reference, id: id);

            return(file.ToFileContentResult());
        }
Exemple #3
0
        public ActionResult Show(string guid)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishBinariesController();
            var file       = controller.Show(context: context, guid: guid);

            if (file == null)
            {
                return(RedirectToAction("notfound", "errors"));
            }
            return(File(file.FileContents, file.ContentType, file.FileDownloadName));
        }
Exemple #4
0
        public ActionResult Download(string guid)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishBinariesController();
            var file       = controller.Download(context: context, guid: guid);

            if (file == null)
            {
                return(RedirectToAction("notfound", "errors"));
            }
            return(ConvertToFileStreamResult(file));
        }