/// <summary author="Danielle Russo" created="2019/01/30"> /// List of all buildings in the Building table. /// <exception cref="SQLException">Insert Fails (example of exception tag)</exception> /// <returns>A list of Building objs.</returns> public List <Building> RetrieveAllBuildings() { List <Building> buildings = null; try { buildings = buildingAccessor.SelectAllBuildings(); } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(buildings); }
// GET: Building public ActionResult Index() { List <Building> buildings = buildingAccessor.SelectAllBuildings(); return(View(buildings)); }