示例#1
0
        // GET: Consumer
        public ActionResult Index()
        {
            var service = new ConsumerService();
            var model   = service.GetConsumers();

            ViewBag.TotalCount = model.ToList().Count();
            return(View(model));
        }