public async Task <ActionResult> ChangeState() { var result = await _testService.ChangeState(); if (result) { return(Ok("Success")); } else { return(BadRequest("Fail")); } }
public async Task HandleAsync(TestCommand command) { await _testService.ChangeState(command); }