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