/// <summary>Gets a specific 'Order' based on it's primary key.</summary>
        public OrderResponse Get(OrderPkRequest request)
        {
            if (Validator != null)
            {
                Validator.ValidateAndThrow(new Order {
                    OrderId = request.OrderId
                }, "PkRequest");
            }

            OnBeforeGetOrderPkRequest(request);
            var output = Repository.Fetch(request);

            OnAfterGetOrderPkRequest(request, output);
            if (output.Result == null)
            {
                throw new HttpError(HttpStatusCode.NotFound, "NullReferenceException", "Order matching [OrderId = {0}]  does not exist".Fmt(request.OrderId));
            }
            return(output);
        }
 partial void OnAfterGetOrderPkRequest(OrderPkRequest request, OrderResponse response);
 partial void OnBeforeGetOrderPkRequest(OrderPkRequest request);