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

            return(json);
        }
コード例 #2
0
        public string Import(long id, HttpPostedFileBase[] file)
        {
            var context    = new ContextImplement(files: file);
            var controller = new Pleasanter.Controllers.ItemsController();
            var json       = controller.Import(
                context: context,
                id: id,
                file: Libraries.Requests.HttpPostedFile.Create(file));

            return(json);
        }