Beispiel #1
0
        // GET: Locations/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Location location = service.GetLocationById(id);

            if (location == null)
            {
                return(HttpNotFound());
            }
            return(View(location));
        }