示例#1
0
        public ActionResult Create(FreqPeriode freqperiode)
        {
            if (ModelState.IsValid)
            {
                db.FreqPeriodes.Add(freqperiode);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(freqperiode);
        }
示例#2
0
 public ActionResult Edit(FreqPeriode freqperiode)
 {
     if (ModelState.IsValid)
     {
         db.Entry(freqperiode).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(freqperiode);
 }