/// <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(); }
/// <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; }