예제 #1
0
 public ActionResult WindowEditPartial(Window wnd)
 {
     db.Entry(wnd).State = EntityState.Modified;
     db.SaveChanges();
     return RedirectToAction("WindowSH");
 }
예제 #2
0
 public ActionResult WindowCreate(Window wnd)
 {
     db.Windows.Add(wnd);
     db.SaveChanges();
     return RedirectToAction("WindowSH");
 }