Ejemplo n.º 1
0
        public Guid Get()
        {
            var order = new PlaceOrder
                {
                    OrderId = Guid.NewGuid(),
                    ProductId = Guid.NewGuid(),
                    CustomerId = Guid.NewGuid(),
                };

            Bus.Send(order);

            return order.OrderId;
        }
        public Result Get([ModelBinder(Name="access_token")]string accessToken = "")
        {
            var order = new PlaceOrder()
            {
                OrderId = Guid.NewGuid(),
                ProductId = Guid.NewGuid(),
                CustomerId = Guid.NewGuid(),
            };

            _bus.Send(order);

            return new Result
            {
                Message = _say.Hello,
                OrderId = order.OrderId
            };
        }