public async Task <IActionResult> Patch(string entityName, string id, [FromBody] ScriptedPatchRequestParameters values) { var userAccount = _userAccountService.GetByUsername(Tenant, User.Identity.Name); await _dataFormsProvider.PatchDataEntryAsync(Tenant, id, values, userAccount); return(Ok(new {})); }
public async Task PatchDataEntryAsync(string tenant, string id, ScriptedPatchRequestParameters patchParams, ApplicationUser userAccount) { var commands = _documentStore.AsyncDatabaseCommands.ForDatabase(tenant); await commands.PatchAsync(id, patchParams.ToScriptedPatchRequest()); }