Example #1
0
        // GET: Building/Details
        public IActionResult Details(long?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var building = service.FindById(id.Value);

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

            return(View(building));
        }