public async Task <ActionResult <Users> > Post([FromBody] CustomerCreatedCommand value) { _handler.HandleCustomerCreated(value); return(Ok()); }
public void HandleCommand(ICustomerCommand command) { _handler.HandleCustomerCreated(command); }