public ActionResult Ujkoncert(program model) { if (ModelState.IsValid) { db.Koncert.Add(model); db.SaveChanges(); return RedirectToAction("Koncert"); } return View(model); }
public ActionResult Koncert_modositas(program model) { if (ModelState.IsValid) { db.Entry(model).State = System.Data.EntityState.Modified; db.SaveChanges(); return RedirectToAction("Koncert"); } return View(model); }