public JsonResult GetList(int currentPage, String Name = "") { Book.BLL.T_Base_Admin bll = new BLL.T_Base_Admin(); //List<Book.Model.T_Base_Admin> lst = bll.GetAll(); List <Book.Model.T_Base_Admin> lst = bll.GetList(currentPage, PageSize, Name); ViewBag.Name = Name; int c = bll.GetCount(Name); return(Json(new { count = c, result = Json(lst) })); }
public ActionResult Index() { Book.BLL.T_Base_Admin admin = new BLL.T_Base_Admin(); ViewBag.admin = admin.GetCount(); Book.BLL.T_Base_Book book = new BLL.T_Base_Book(); ViewBag.book = book.GetCount(); Book.BLL.T_Base_Provider provider = new BLL.T_Base_Provider(); ViewBag.provider = provider.GetCount(); Book.BLL.T_Base_Customer customer = new BLL.T_Base_Customer(); ViewBag.customer = provider.GetCount(); Book.BLL.T_Stock_Report stock = new BLL.T_Stock_Report(); ViewBag.stock = stock.GetCount(); return(View()); }