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