public async Task Post(PostCreateDtoParam param) { ValidateModelOrThrow(); var command = new PostCreateCommand() { Input = new PostCreateDto(param) }; await CommandBus.SendAsync(command); }
public async Task Post(PostCreateDtoParam param) { ValidateModelOrThrow(); //PostQuery.SelectAsync(title) throw new InputError("title 不能重复!"); var command = new PostCreateCommand() { Input = new PostCreateDto(param) }; await CommandBus.SendAsync(command); }