Ejemplo n.º 1
0
        // GET: Recharge
        public ActionResult Index()
        {
            Recharge taskItem = new Recharge();
            int      page     = 1;

            page = string.IsNullOrWhiteSpace(Request.Params["page"]) ? 1 : int.Parse(Request.Params["page"]);
            Dictionary <string, string> dic      = new Dictionary <string, string>();
            List <Recharge>             itemList = BaseModelDB.Recharge.ToList();
            var pageItem = taskItem.PageList(page, 10, "/recharge/index", ref itemList);

            ViewBag.PageData = pageItem;
            ViewBag.ListItem = itemList;
            // modelDB.Task
            return(View());
        }