コード例 #1
0
 //*****************Delete loot record manually*****************
 // GET: Loot/Delete/5
 public ActionResult Delete(int id)
 {
     try
     {
         LootDBHandle ldb = new LootDBHandle();
         if (ldb.DeleteRecord(id))
         {
             ViewBag.AlertMsg = "Loot Record Deleted Successfully";
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }