private static GroupContainer FromQuery(IModelQuery <TimeEntryModel> query)
        {
            var groups = new GroupContainer();

            try {
                // Find unique time entries and add them to the list
                foreach (var entry in query)
                {
                    if (groups.Contains(entry))
                    {
                        continue;
                    }
                    groups.Add(entry);
                }

                groups.Sort();
            } catch (Exception exc) {
                var log = ServiceContainer.Resolve <Logger> ();
                log.Error(Tag, exc, "Failed to compose recent time entries");
            }
            return(groups);
        }
        private static async Task <GroupContainer> FromQuery(IDataQuery <TimeEntryData> query)
        {
            var groups = new GroupContainer();

            try {
                var entries = await query.QueryAsync().ConfigureAwait(false);

                // Find unique time entries and add them to the list
                foreach (var entry in entries)
                {
                    if (groups.Contains(entry))
                    {
                        continue;
                    }
                    groups.Add(entry);
                }

                groups.Sort();
            } catch (Exception exc) {
                var log = ServiceContainer.Resolve <ILogger> ();
                log.Error(Tag, exc, "Failed to compose recent time entries");
            }
            return(groups);
        }