示例#1
0
 public async Task Set([FromBody] OutputDto fragment)
 {
     if (fragment.State != null)
     {
         await new State.Set(fragment.State.Value).ExecuteAsync(_instrument);
     }
 }
示例#2
0
        public async Task <IActionResult> Get()
        {
            var result = new OutputDto()
            {
                State = await new State.Get().ExecuteAsync(_instrument)
            };

            return(Ok(result));
        }