public async Task <IActionResult> Post(AddProductToBasket command) { var context = GetContext(); await BusPublisher.SendAsync(command, context); return(Accepted()); }
public async Task <IActionResult> UpdateBasket([FromBody] AddProductToBasket command) { await _busPublisher.SendAsync(command.Bind(x => x.Item.Id, Guid.NewGuid()), null); return(Accepted()); }