예제 #1
0
        //
        // 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);
        }
예제 #2
0
 public ActionResult Create(BulletList bullet)
 {
     try
     {
         //if (ModelState.IsValid)
         //{
             MyDB.BulletLists.Add(bullet);
             MyDB.SaveChanges();
         //}
     }
     catch
     {
     }
     return PartialView();
 }