コード例 #1
0
        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());
            }
        }