public void Handle(OpenAuctionCommand command) { var id = _repository.GetNextId(); var auction = new Auction(id, command.Product, command.EndDateTime, command.StartingPrice, command.SellerId); _repository.Add(auction); }
public void Post([FromBody] OpenAuctionCommand command) { _bus.Dispatch(command); }
public void Post(OpenAuctionCommand command) { _bus.Dispatch(command); }
public void Handle(OpenAuctionCommand command) { var auction = new Auction(command.StartingPrice, command.SellerId, command.EndDateTime, command.ProductDescription); _repository.Add(auction); }
public IActionResult Post([FromBody] OpenAuctionCommand command) { _commandDispatcher.Dispatch <OpenAuctionCommand>(command); return(Ok()); }
public IActionResult Post([FromBody] OpenAuctionCommand command) { commandBus.Dispatch(command); return(Ok()); }