예제 #1
0
        public ActionResult Index()
        {
            PatronDBhandle dbhandle = new PatronDBhandle();

            ModelState.Clear();
            return(View(dbhandle.GetPatron()));
        }
예제 #2
0
        public ActionResult Edit(int id)
        {
            PatronDBhandle sdb = new PatronDBhandle();

            return(View(sdb.GetPatron().Find(pmodel => pmodel.Id == id)));
        }