public void BroadcastUserAdded(PatientViewModel patient) { try { Clients.All.addPatient(patient); } catch (Exception) { } }
public void BroadcastUserUpdated(PatientViewModel patient) { try { Clients.All.updatePatient(patient); } catch (Exception) { } }
public void BroadcastUserAdded(PatientViewModel patient) { _patientsManager.BroadcastUserAdded(patient); }
public ActionResult Create(PatientViewModel model) { var patient = new Patient { Name = model.Name, Cpr = model.Cpr, RfidTag = model.Rfid, Location = model.Location, DeviceId = model.DeviceId, SonitorTag = model.SonitorTag }; Portal.Instance().AddPatient(patient); return RedirectToAction("Create"); }
public ActionResult Create() { var model = new PatientViewModel(); return View("Create", model); }
public ActionResult Edit(PatientViewModel model) { if (ModelState.IsValid) { var patient = Portal.Instance().FindPatientById(model.Id); if (patient == null) return HttpNotFound("Patient with id = " + model.Id + " was not found"); patient.Name = model.Name; patient.Cpr = model.Cpr; patient.Location = model.Location; patient.Procedure = model.Procedure; patient.DeviceId = model.DeviceId; patient.SonitorTag = model.SonitorTag; patient.RecordLoaction = model.RecordLocation; patient.Ews = model.Ews; Portal.Instance().UpdatePatient(patient); } return OtherPatientData(model.Id); }