public async Task Set([FromBody] OutputDto fragment) { if (fragment.State != null) { await new State.Set(fragment.State.Value).ExecuteAsync(_instrument); } }
public async Task <IActionResult> Get() { var result = new OutputDto() { State = await new State.Get().ExecuteAsync(_instrument) }; return(Ok(result)); }