public string DeleteImage(string reference, string guid)
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.DeleteImage(context: context, reference: reference, guid: guid);

            return(json);
        }
        public string DeleteTenantImage()
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.DeleteTenantImage(context: context);

            return(json);
        }
        public string UploadImage(string reference, long id, HttpPostedFileBase[] file)
        {
            var context    = new ContextImplement(files: file);
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.UploadImage(context: context, reference: reference, id: id, file: Libraries.Requests.HttpPostedFile.Create(file));

            return(json);
        }
        public ActionResult TenantImageLogo()
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.TenantImageLogo(context: context);

            return(fileContent);
        }
        public string UpdateTenantImage(HttpPostedFileBase[] file)
        {
            var context    = new ContextImplement(files: file);
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.UpdateTenantImage(context: context, file: Libraries.Requests.HttpPostedFile.Create(file));

            return(json);
        }
        public string DeleteTemp(string reference, long id)
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.DeleteTemp(context: context, reference: reference, id: id);

            return(json.ToString());
        }
        public ActionResult SiteImageIcon(string reference, long id)
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.SiteImageIcon(context: context, reference: reference, id: id);

            return(fileContent);
        }
        public FileContentResult DownloadTemp(string reference, string guid)
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.DownloadTemp(context: context, reference: reference, guid: guid);

            return(fileContent);
        }
Example #9
0
        public string UploadImage(string reference, long id, ICollection <IFormFile> file)
        {
            var context    = new ContextImplement(files: file);
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.UploadImage(context: context, reference: reference, id: id, file: HttpPostedFile.Create(file));

            return(json);
        }
Example #10
0
        public string UpdateTenantImage(ICollection <IFormFile> file)
        {
            var context    = new ContextImplement(files: file);
            var controller = new Implem.Pleasanter.Controllers.BinariesController();
            var json       = controller.UpdateTenantImage(context: context, file: HttpPostedFile.Create(file));

            return(json);
        }
Example #11
0
        public ActionResult TenantImageLogo()
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.TenantImageLogo(context: context);

            return(((System.Web.Mvc.FileContentResult)fileContent).ToFileContentResult());
        }
Example #12
0
        public ActionResult SiteImageThumbnail(string reference, long id)
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.SiteImageThumbnail(context: context, reference: reference, id: id);

            return(((System.Web.Mvc.FileContentResult)fileContent).ToFileContentResult());
        }
Example #13
0
        public FileContentResult Download(string reference, string guid)
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.Download(context: context, reference: reference, guid: guid);

            return(((System.Web.Mvc.FileContentResult)fileContent).ToFileContentResult());
        }
        public ActionResult ShowTemp(string reference, string guid)
        {
            var context     = new ContextImplement();
            var controller  = new Implem.Pleasanter.Controllers.BinariesController();
            var fileContent = controller.ShowTemp(context: context, reference: reference, guid: guid);

            return(fileContent != null
                ? File(fileContent.FileContents, fileContent.ContentType)
                : null);
        }