Beispiel #1
0
 public ActionResult Edit([Bind(Include = "Id,MassType,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday,I,II,III,IV,V,VI,VII,VIII,IX,X,XI,XII,Week1,Week2,Week3,Week4,Week5,WeekLast,CycleType,DateBegin,DateEnd,Hour,DateShift,Repeat,ChurchId,CycleId,HolidayId,Comment")] Rule rule)
 {
     if (ModelState.IsValid)
     {
         db.Entry(rule).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(rule));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "Id,Name,Address,Decanate,Diocese")] Church church)
 {
     if (ModelState.IsValid)
     {
         db.Entry(church).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(church));
 }