Exemplo n.º 1
0
        // GET: Buildings/Details/5
        public ActionResult Details(int?id)
        {
            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Building building = p_repo.GetBuilding(id.Value);

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