public Task Put([FromBody] string name) { var command = new CreateWareHouseCommand(name); _commandBus.ExecuteAsync(command).Wait(); return(Task.CompletedTask); }
public Task Put([FromBody] CreateWareHouseCommand command) { _commandBus.ExecuteAsync(command).Wait(); return(Task.CompletedTask); }