/// <summary> /// Updates the entity state. /// </summary> /// <param name="id">The identifier of the entity.</param> /// <param name="state">The state.</param> /// <param name="cancellationToken">The optional token to monitor for cancellation requests.</param> /// <returns>The change method.</returns> public Task <ChangingResultInfo> UpdateStateAsync(string id, ResourceEntityStates state, CancellationToken cancellationToken = default) { return(SaveAsync(id, new JsonObjectNode { { "state", state.ToString() } }, cancellationToken)); }