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

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

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