public ActionResult CreateAlarm(int ID) { NewAlarm model = new NewAlarm(); model.Pacient = PacientServices.ClassObject.GetPacient(ID); return(PartialView(model)); }
public ActionResult CreateAlarm(NewAlarm model) { var newAlarm = new Alarm(); newAlarm.IDPacient = model.IDPacient; newAlarm.ValoareVizata = model.ValoareVizata; newAlarm.LimitaInferioara = model.LimitaInferioara; newAlarm.LimitaSuperioara = model.LimitaSuperioara; newAlarm.Mesaj = model.Mesaj; DoctorServices.ClassObject.SaveAlarm(newAlarm); return(RedirectToAction("PacientsTable")); }
private void OnNewAlarm(Operation operation) { NewAlarm?.Invoke(this, new AlarmSourceEventArgs(operation)); }
private void OnNewAlarm(AlarmSourceEventArgs args) { NewAlarm?.Invoke(this, args); }