public ActionResult Edit(PatientView view) { _bus.Send(new UpdatePatient() { Id = view.PatientId, Initials = view.Initials, Level = view.Level, DateOfBirth = view.DateOfBirth, Name = view.Name, SiteId = view.SiteId }); return RedirectToAction("Index"); }
public ActionResult Create(PatientView view) { _bus.Send(new CreatePatient() { Id = Guid.NewGuid().ToString(), Initials = view.Initials, Level = view.Level, DateOfBirth = view.DateOfBirth, Name = view.Name, SiteId = view.SiteId }); return RedirectToAction("Index"); }