Example #1
0
        public bool CheckIfTeamWasActive(PropertyInfo propInfo, Season season)
        {
            IEnumerable <Activity> activityList = _activityRepository.AsQueryable().Where(x => x.Id == season.ToString());

            if (!activityList.Any())
            {
                return(false);
            }
            Activity activity = activityList.First();

            return(Convert.ToBoolean(propInfo.GetValue(activity)));
        }