public async Task <IActionResult> Create([FromBody] CreateSpace model) { await _orgSpaceService.CreateAsync(model); return(AppResponse(null, "创建成功")); }
public async Task CreateAsync(CreateSpace model) { var command = _mapper.Map <CreateSpaceCommand>(model); await _bus.SendCommandAsync(command); }