Beispiel #1
0
        public ActionResult Show(string placeID)
        {
            List <PlacesInput> checkList = PlacesInput.GetAll();

            if (checkList.Count == 0)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                int         intID     = int.Parse(placeID);
                PlacesInput showPlace = PlacesInput.Show(intID);
                return(View(showPlace));
            }
        }
Beispiel #2
0
        public void GetPlaces_ReturnPlaces_ItemList()
        {
            List <PlacesInput> result = PlacesInput.GetAll();

            foreach (PlacesInput i in result)
            {
                Console.WriteLine(i.PlaceName);
            }

            List <PlacesInput> newList = new List <PlacesInput> {
                newPlaces
            };

            CollectionAssert.AreEqual(newList, result);
        }
Beispiel #3
0
        public ActionResult Index()
        {
            List <PlacesInput> newPlaces = PlacesInput.GetAll();

            return(View(newPlaces));
        }