private void SetPatientsOnModel(BiopsyCreateModel model) { model.Patients = (_patientStore.GetPatients()).Select(p => new SelectListItem() { Text = p.Id, Value = p.Id }); }
// GET: /Biopsy/Create public ActionResult Create() { var model = new BiopsyCreateModel(); SetPatientsOnModel(model); return View(model); }