示例#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)));
        }