public int GetCount(string Query) { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); int result = dal.GetCount(Query); return(result); }
public int GetCount(String BookName = "", String Author = "") { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); int count = dal.GetCount(BookName, Author); return(count); }
public Book.Model.T_Base_Book_Page GetListPage(int CurrentPage, int PageSize) { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); List <Book.Model.T_Base_Book> list = dal.GetList(CurrentPage, PageSize); int count = dal.GetCount(); Book.Model.T_Base_Book_Page page = new Model.T_Base_Book_Page(); page.list = list; page.count = count; return(page); }
public Book.Model.T_Base_Book_Page GetListPage(int CurrentPage, int PageSize, String BookName = "", String Author = "") { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); List <Book.Model.T_Base_Book> list = dal.GetList(CurrentPage, PageSize, BookName, Author); int count = dal.GetCount(BookName, Author); Book.Model.T_Base_Book_Page page = new Model.T_Base_Book_Page(); page.list = list; page.count = count; return(page); }
public Book.Model.Home GetCount() { Book.Model.Home home = new Model.Home(); Book.DAL.T_Base_Book book_dal = new DAL.T_Base_Book(); home.BookCount = book_dal.GetCount(); Book.DAL.T_Base_Provider provider_dal = new DAL.T_Base_Provider(); home.ProviderCount = provider_dal.GetCount(); Book.DAL.T_Base_Customer customer_dal = new DAL.T_Base_Customer(); home.CustomerCount = customer_dal.GetCount(); Book.DAL.T_Stock_In in_dal = new DAL.T_Stock_In(); home.InHeadCount = in_dal.GetCount(); Book.DAL.T_Stock_Out out_dal = new DAL.T_Stock_Out(); home.OutHeadCount = in_dal.GetCount(); return(home); }