// // GET: /Bullet/ public ActionResult Index(int Id=0) { BulletList bullet = new BulletList(); if (Id > 0) { bullet = MyDB.BulletLists.SingleOrDefault(m => m.Id == Id); } return PartialView(bullet); }
public ActionResult Create(BulletList bullet) { try { //if (ModelState.IsValid) //{ MyDB.BulletLists.Add(bullet); MyDB.SaveChanges(); //} } catch { } return PartialView(); }