public ActionResult Create(FreqPeriode freqperiode) { if (ModelState.IsValid) { db.FreqPeriodes.Add(freqperiode); db.SaveChanges(); return RedirectToAction("Index"); } return View(freqperiode); }
public ActionResult Edit(FreqPeriode freqperiode) { if (ModelState.IsValid) { db.Entry(freqperiode).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(freqperiode); }