Exemple #1
0
        public string Import(long id, ICollection <IFormFile> file)
        {
            var context    = new ContextImplement(files: file);
            var controller = new Implem.Pleasanter.Controllers.UsersController();
            var json       = controller.Import(context: context, id: id, file: HttpPostedFile.Create(file));

            return(json);
        }
Exemple #2
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);
        }
Exemple #3
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);
        }