Пример #1
0
        public void OnGet()
        {
            Countries = _context.Country.ToList();
            Athletes  = _context.Athlete.ToList();

            AthleteCount = Athletes.Count();
        }
Пример #2
0
        public bool CanDelete( )
        {
            if (Championship == null)
            {
                return(true);
            }

            if (Championship.isLocked( ))
            {
                return(false);
            }

            // 2016-05-29 optimised by not using getAllAthletes which instantiates each athlete.
            return(Athletes.Count( ) == 0);
            //return ( getAllAthletes ( ).Count == 0 );
        }