Example #1
0
        /*      public ActionResult Index()
         *    {
         *        return View();
         *    }*/

        // GET: Building/Details/5
        public ActionResult Details(int?id)
        {
            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Building building = m_repo.GetBuildingById(id.Value);

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

            return(View(building));
        }