/// <summary>
        /// 查询房东房屋视图
        /// </summary>
        /// <param name="customerID">房东编号</param>
        /// <returns>房东房屋视图</returns>
        public View_House_CustomerInfo Get(int customerID)
        {
            int totalPage = 0;
            List<View_House_CustomerInfo> result;

            var queryConditions = new HouseCustomerInfoQueryConditions() { CustomerID = customerID };
            HouseCustomerInfoFunction houseCustomerInfoFunction = new HouseCustomerInfoFunction();
            houseCustomerInfoFunction.QueryHousesCustomerInfo(queryConditions, out result, out totalPage);

            return result.FirstOrDefault();
        }
        public int QueryHousesCustomerInfo(HouseCustomerInfoQueryConditions queryConditions, out List<View_House_CustomerInfo> result, out int totalPage)
        {
            using (var db = new HouseMarketEntities())
            {
                totalPage = 0;

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

                return 0;
            }
        }
        /// <summary>
        /// 查询房东房屋视图
        /// </summary>
        /// <returns>房东房屋视图,总页数</returns>
        public IEnumerable<object> Get()
        {
            int totalPage = 0;
            List<View_House_CustomerInfo> result;

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

            HouseCustomerInfoFunction houseCustomerInfoFunction = new HouseCustomerInfoFunction();
            houseCustomerInfoFunction.QueryHousesCustomerInfo(queryConditions, out result, out totalPage);

            List<object> objectResult = new List<object>() { result, new { totalPage = totalPage } };
            return objectResult;
        }