Example #1
0
        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");
        }
Example #2
0
        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");
        }