コード例 #1
0
        public List <DProspect> GetTopProspects(int year, int count)
        {
            Queue <DProspect> prospects = db.GetProspectsByYearAsQueue(year);

            if (count == -1)
            {
                return(ListUtility.QueueToList(prospects));
            }

            List <DProspect> returnedProspects = ListUtility.GetFirstElements(prospects, count);

            return(returnedProspects);
        }