Ejemplo n.º 1
0
        // GET: App
        public ActionResult Index(int pageindex = 1, string kword = "")
        {
            long totalItem;
            var  dto = AppBusiness.GetApps(pageindex, 20, kword, out totalItem);

            return(View(new PagedList <AppDto>(dto, pageindex, 20, (int)totalItem)));
        }
Ejemplo n.º 2
0
        // GET: App
        public ActionResult Index(int pageindex = 1, string kword = "")
        {
            long   totalItem;
            string sarchKword;

            sarchKword = GetProjectNameIfAdminOrSpeac(kword);

            ViewData["roleName"] = Session["roleName"];

            var dto = AppBusiness.GetApps(pageindex, 20, sarchKword, out totalItem);

            return(View(new PagedList <AppDto>(dto, pageindex, 20, (int)totalItem)));
        }
Ejemplo n.º 3
0
        public ActionResult Index(int pageindex = 1, string kword = "")
        {
            long   totalItem;
            int    pageSize = 12;
            string sarchKword;

            sarchKword = GetProjectNameIfAdminOrSpeac(kword);

            ViewData["rolename"] = _session.GetString("rolename");

            var pageList = AppBusiness.GetApps(pageindex, pageSize, sarchKword, out totalItem).ToPagedList(pageindex, pageSize, totalItem);

            return(View(pageList));
        }