Пример #1
0
        public int GetNumberOfOrdersWithStatus(OrderStatus orderStatus)
        {
            var query = new SQLQueryScaler <int>(SQLCountOrderOfStatus);

            query.Parameters.Add("OrderStatus", (int)orderStatus);
            var count = queryRunner.RunScalerQuery <int>(query);

            return(count);
        }