Beispiel #1
0
        public async Task <List <Activity> > GetActivitiesAsync()
        {
            if (_activities.Count > 0)
            {
                return(_activities);
            }

            foreach (var activityResourceName in EmbeddedResources.GetAllResources())
            {
                var activity = await GetActivityByResourceName(activityResourceName);

                string[] split   = activityResourceName.Split('.');
                string   athlete = split[split.Length - 2].Split('_')[1];

                activity.Notes = athlete.ToUpper();
                _activities.Add(activity);
            }

            return(_activities);
        }