Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        //
        // 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));
        }