示例#1
0
        public ActionResult Manage(int id, string status)
        {
            var references = _manager.GetAllReferences();
            var model      = new PatientViewModel()
            {
                Patient    = _manager.FindBy(id),
                References = references.Select(x => new SelectListItem()
                {
                    Text  = x.Description,
                    Value = x.Description
                }).ToList(),
                Status = status
            };

            return(View(model));
        }