// This calls the accessor method that selects a list of groups by activityID; public List <string> RetrieveGroupsByActivityID(int activityID) { List <string> groups = null; try { groups = _groupAccessor.SelectGroupsByActivityID(activityID); } catch (Exception ex) { throw new ApplicationException("Group not found!", ex); } return(groups); }