コード例 #1
0
 public AddSaleCommandHandlerTest()
 {
     request = new AddSaleCommand(new SaleResource()
     {
         CityName    = "add",
         Price       = 120,
         ProductId   = "1",
         ProductName = "add",
         UserName    = "******"
     });
 }
コード例 #2
0
 public async Task <ActionResult <AddSaleResponse> > Add([FromBody] AddSaleCommand data)
 {
     return(Ok(await Mediator.Send(data)));
 }
コード例 #3
0
ファイル: SalesController.cs プロジェクト: gsGabriel/backfy
 public async Task <AddSaleCommandResult> Post([FromBody] AddSaleCommand command)
 {
     return(await mediator.Send(command));
 }