/**
  * Remove a facility
  *
  * @return
  */
 public void removeFacility(int id) {
   facilityDao.deleteFacility(id);
 }
 /**
  * Add a new facility detail
  *
  * @param facilityDetail
  * @throws Exception
  */
 public void addFacilityDetail(FacilityDetail facilityDetail) throws Exception {
   facilityDao.createFacilityDetail(facilityDetail);
 }
 /**
  * Add a new facility
  *
  * @param facility
  */
 public void addNewFacility(Facility facility) throws Exception {
   facilityDao.createFacility(facility);
 }
 /**
  * Return the facility capacity
  *
  * @param id
  * @return
  */
 public int requestAvailableCapacity(int id) throws Exception {
   return facilityDao.selectFacilityCapacity(id);
 }
 /**
  * Return facility and facility detail information
  *
  * @return
  */
 public Facility getFacilityInformation(int id) {
   return facilityDao.selectFacilityWithDetails(id);
 }
 /**
  * List all facilities with basic info
  *
  * @return
  */
 public List<Facility> listFacilities() {
   return facilityDao.selectAll();
 }