Esempio n. 1
0
        public async Task <IActionResult> Post(CreateOrderCommand command)
        {
            await _dispatcher.SendAsync(command.BindId(c => c.Id));

            return(CreatedAtAction(nameof(Get), new GetOrderQuery()
            {
                Id = command.Id
            }, null));
        }