public async Task <IActionResult> Post(AddProductToBasket command)
        {
            var context = GetContext();
            await BusPublisher.SendAsync(command, context);

            return(Accepted());
        }
示例#2
0
        public async Task <IActionResult> UpdateBasket([FromBody] AddProductToBasket command)
        {
            await _busPublisher.SendAsync(command.Bind(x => x.Item.Id, Guid.NewGuid()), null);

            return(Accepted());
        }