Beispiel #1
0
 public void Post([FromBody] CreatePriceCommand command)
 {
     commandBus.Publish(command);
 }
        public async Task <ActionResult <int> > Create(int sportObjectId, CreatePriceCommand command)
        {
            command.SportObjectId = sportObjectId;

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