Ejemplo n.º 1
0
        public static OrderElastic ToOrderElastic(this Order order)
        {
            var model = new OrderElastic
            {
                OrderByField   = order.OrderByField,
                OrderDirection = (int)order.OrderDirection
            };

            return(model);
        }
Ejemplo n.º 2
0
        public static Order ToOrderModel(this OrderElastic order)
        {
            var model = new Order
            {
                OrderByField   = order.OrderByField,
                OrderDirection = (OrderDirectionEnum)order.OrderDirection
            };

            return(model);
        }