public ActionResult Create(LootModel smodel) { try { if (ModelState.IsValid) { LootDBHandle ldb = new LootDBHandle(); if (ldb.AddRecord(smodel)) { ViewBag.Message = "Loot Record Added Successfully"; ModelState.Clear(); } } return(View()); } catch { return(View()); } }