/// <summary>
        /// 查询城市价格趋势
        /// </summary>
        /// <returns>城市价格趋势,总页数</returns>
        public IEnumerable<object> Get()
        {
            int totalPage = 0;
            List<CityPriceTrend> result;

            var queryString = Request.GetQueryNameValuePairs();
            var queryConditions = new CityPriceTrendQueryConditions();
            queryConditions.GetValues(queryString);

            CityPriceTrendFunction cityPriceTrendFunction = new CityPriceTrendFunction();
            cityPriceTrendFunction.QueryCityPriceTrend(queryConditions, out result, out totalPage);

            List<object> objectResult = new List<object>() { result, new { totalPage = totalPage } };
            return objectResult;
        }
        /// <summary>
        /// 查询单个城市价格趋势
        /// </summary>
        /// <param name="city">城市</param>
        /// <returns>城市价格趋势,总页数</returns>
        public IEnumerable<object> Get(string city)
        {
            int totalPage = 0;
            List<CityPriceTrend> result;

            var queryConditions = new CityPriceTrendQueryConditions() { City = city };

            CityPriceTrendFunction cityPriceTrendFunction = new CityPriceTrendFunction();
            cityPriceTrendFunction.QueryCityPriceTrend(queryConditions, out result, out totalPage);

            List<object> objectResult = new List<object>() { result, new { totalPage = totalPage } };
            return objectResult;
        }
        //查询城市价格趋势
        public int QueryCityPriceTrend(CityPriceTrendQueryConditions queryConditions, out List<CityPriceTrend> result, out int totalPage)
        {
            using (var db = new HouseMarketEntities())
            {
                totalPage = 0;

                var entities = db.CityPriceTrends;
                var query = SetQuery(entities, queryConditions, out totalPage);
                result = query.ToList();

                return 0;
            }
        }