public ActionResult Details(string id) { if (id == null) { return(RedirectToAction("Index")); } Building building = buildingAccessor.SelectBuildingByID(id); return(View(building)); }
/// <summary author="James Heim" created="2019/04/17"> /// Retrieve a building by the specified building id. /// </summary> /// <param name="selectedBuilding"></param> /// <returns></returns> public Building RetrieveBuilding(string buildingID) { Building building = null; try { building = buildingAccessor.SelectBuildingByID(buildingID); } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(building); }