public async Task Post(PostCreateDtoParam param)
 {
     ValidateModelOrThrow();
     var command = new PostCreateCommand()
     {
         Input = new PostCreateDto(param)
     };
     await CommandBus.SendAsync(command);
 }
Esempio n. 2
0
 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);
 }