示例#1
0
        public ActionResult Index()
        {
            var repo = new ProductsRepo("~/App_Data/Copiers.xml");

            return View(repo.All());
        }
示例#2
0
        public ActionResult Copier(int id)
        {
            var repo = new ProductsRepo("~/App_Data/Copiers.xml");

            return View(repo.Find(x => x.Id == id));
        }