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); }
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); }