Ejemplo n.º 1
0
        public ActionResult SeekOnePerson(string id)
        {
            //string _id = Request.QueryString["id"].ToString();
            if (string.IsNullOrEmpty(id))
            {
                return(View(new Person()
                {
                    _id = default(ObjectId),
                    Name = "",//1
                    Salary = default(double),
                    Address = new List <string>()
                }));
            }
            ObjectId _id;

            ObjectId.TryParse(id, out _id);
            Person person = pDal.SelectSinglePerson(_id);

            return(View(person));

            //return View();
        }