public IEnumerable<ISurvey> GetAllSurveys(ConnectionModel connectionModel) { var surveyList = new List<ISurvey>(); var serverParkNames = _parkService.GetServerParkNames(connectionModel); foreach (var serverParkName in serverParkNames) { var serverPark = _parkService.GetServerPark(connectionModel, serverParkName); surveyList.AddRange(serverPark.Surveys); } return surveyList; }
public IEnumerable <string> GetNamesOfServerParks() { return(_parkService.GetServerParkNames(_connectionModel)); }