コード例 #1
0
ファイル: PriceController.cs プロジェクト: anthyme/Marge
 public void Post([FromBody] CreatePriceCommand command)
 {
     commandBus.Publish(command);
 }
コード例 #2
0
        public async Task <ActionResult <int> > Create(int sportObjectId, CreatePriceCommand command)
        {
            command.SportObjectId = sportObjectId;

            return(await Mediator.Send(command));
        }