ActivEarth.RestService.ActivEarthRestService.FindContests C# (CSharp) Метод

FindContests() публичный Метод

public FindContests ( string search, string exactMatch ) : Collection
search string
exactMatch string
Результат Collection
        public Collection<Contest> FindContests(string search, string exactMatch)
        {
            List<int> ids = ContestDAO.FindContests(search, bool.Parse(exactMatch));
            Collection<Contest> contests = new Collection<Contest>();

            foreach (int contestId in ids)
            {
                contests.Add(ContestDAO.GetContestFromContestId(contestId, true, true));
            }

            return contests;
        }