public ActionResult Person(string name, string description) { if (name == null) { name = "Mildred B. Whelehon"; } ViewBag.Message = "Generic Person description message."; ViewBag.Person = name; ViewBag.Description = description; List <Artifact> artifacts = new List <Artifact>(); artifacts = PersonDB.GetArtifacts(name); return(View(artifacts)); }
// // GET: /CMMaint/ public ActionResult Index() { // works! var myCollection = db.Artifact.ToArray(); var myCollection = db.Artifact.ToArray(); List <Artifact> artifacts = new List <Artifact>(); artifacts = PersonDB.GetArtifacts(genericPersonName); //var www = db.Artifact.Find(" ") ;// .ToList(); //? needed ?? //var xxx = db.Artifact.ToArray().First(); //var yyy = db.Artifact.ToArray().Distinct(genericPersonName); return(View(artifacts)); }