public ActionResult AlarmEditPartial(Alarm al) { db.Entry(al).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("AlarmSH"); }
public ActionResult AlarmCreate(Alarm al) { db.Alarms.Add(al); db.SaveChanges(); return RedirectToAction("AlarmSH"); }