Exemple #1
0
        //
        // GET: /Restaurant/Details/5

        public ActionResult Details(string id)
        {
            Restaurant res = restaurants.GetPlace(id);

            if (res == null)
            {
                return(HttpNotFound());
            }
            return(View(res));
        }
Exemple #2
0
        //
        // GET: /Hotel/Details/5

        public ActionResult Details(string id)
        {
            Hotel hot = hotels.GetPlace(id);

            if (hot == null)
            {
                return(HttpNotFound());
            }
            return(View(hot));
        }
Exemple #3
0
        //
        // GET: /Cinema/Details/5

        public ActionResult Details(string id)
        {
            Cinema res = cinemas.GetPlace(id);

            if (res == null)
            {
                return(HttpNotFound());
            }
            return(View(res));
        }
        //
        // GET: /Pharmacy/Details/5

        public ActionResult Details(string id)
        {
            Pharmacy result = pharmacies.GetPlace(id);

            if (result == null)
            {
                return(HttpNotFound());
            }
            return(View(result));
        }
        //
        // GET: /GovenrmentBuilding/Details/5

        public ActionResult Details(string id)
        {
            GovernmentBuilding gb = governBuildings.GetPlace(id);

            if (gb == null)
            {
                return(HttpNotFound());
            }

            return(View(gb));
        }