// GET: placestovisit
        public ActionResult viewallplaces()
        {
            placestovisitdb  database   = new placestovisitdb();
            int              locationid = int.Parse(Session["locationid"].ToString());
            List <placedata> places     = database.locationplaces(locationid);

            return(View(places));
        }
        public ActionResult place(int pid)
        {
            placestovisitdb  database   = new placestovisitdb();
            int              locationid = int.Parse(Session["locationid"].ToString());
            List <placedata> places     = database.locationplaces(locationid);
            placedata        place      = places.Where(i => i.ptvid == pid).Select(i => i).FirstOrDefault();

            return(View(place));
        }