mvc.net分页查询案例——业务逻辑层BLL(HouseBLL.cs)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.Data.Sql;
using System.Data;
using HouseSys.Models;
using HouseSys.DLL;

namespace HouseSys.BLL
{

    public class HouseBLL
    {
        HouseDLL houseDll = new HouseDLL();
        public List<HouseModel> GetHousesAll(int pageIndex, int pageSize,out int AllCount)
        {
            AllCount = houseDll.GetHouseCount();
            return houseDll.GetHousesAll(pageIndex,pageSize,null);
        }
    }
}

posted @ 2017-07-07 07:36  穆雄雄  阅读(103)  评论(0编辑  收藏  举报