コード例 #1
0
        // *****************Retrieve all loot records*****************
        // GET: Loot
        public ActionResult Index()
        {
            LootDBHandle dbhandle = new LootDBHandle();

            ModelState.Clear();
            return(View(dbhandle.GetRecords()));
        }
コード例 #2
0
        // *****************Edit loot record details manually*****************
        // GET: Loot/Edit/5
        public ActionResult Edit(int id)
        {
            LootDBHandle ldb = new LootDBHandle();

            return(View(ldb.GetRecords().Find(smodel => smodel.Id == id)));
        }