예제 #1
0
        public async Task <ActionResult> ChangeState()
        {
            var result = await _testService.ChangeState();

            if (result)
            {
                return(Ok("Success"));
            }
            else
            {
                return(BadRequest("Fail"));
            }
        }
예제 #2
0
 public async Task HandleAsync(TestCommand command)
 {
     await _testService.ChangeState(command);
 }