示例#1
0
        public ActionResult Products()
        {
            NorthwindViewModel vm = new NorthwindViewModel();
            NorthwindDb        db = new NorthwindDb(_connectionString);

            vm.Products = db.GetProducts();

            return(View(vm));
        }