Ejemplo n.º 1
0
        public async Task <ManagerFolderModel> SaveFormData(SaveDataRequest saveDataRequest)
        {
            // First we're going to 'open' the file, and get all that metadata filled out.
            var folderModel = await Connection.Folder.GetAsync(saveDataRequest.FolderIdentifier);

            SchemaForm.UpdateFormData(saveDataRequest.Data, folderModel);

            await Connection.Folder.PutAsync(folderModel);

            return(ModelConvert(folderModel));
        }
Ejemplo n.º 2
0
        public async Task <ManagerFileModel> SaveFormData(SaveDataRequest saveDataRequest)
        {
            // First we're going to 'open' the file, and get all that metadata filled out.
            var fileModel = await Connection.File.GetAsync(saveDataRequest.FileIdentifier);

            var organization = await Connection.Organization.GetAsync(saveDataRequest.FileIdentifier as OrganizationIdentifier);

            SchemaForm.UpdateFormData(saveDataRequest.Data, fileModel);

            await Connection.File.PutAsync(fileModel);

            return(ModelConvert(organization, fileModel, connection.UserTimeZone));
        }