Exemplo n.º 1
0
        public async Task <ActionResult> ChangeState()
        {
            var result = await _testService.ChangeState();

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