public List <Log> GetLogs(int maxItemCount)
        {
            var feedOptions = new FeedOptions()
            {
                MaxItemCount = maxItemCount
            };

            try
            {
                return(_genericDocumentDBProvider.CreateQuery <Log>(feedOptions).Where(u => u.Type == "LOG").ToList());
            }
            catch (AggregateException AE)
            {
                throw new CollectionException("The collection doesn't exist");
            }
        }
        public List <User> GetUsers(int maxItemCount)
        {
            var feedOptions = new FeedOptions()
            {
                MaxItemCount = maxItemCount
            };

            try
            {
                return(_genericDocumentDBProvider.CreateQuery <User>(feedOptions).Where(u => u.Type == "USER").ToList());
            }
            catch (AggregateException AE)
            {
                //logging error
                throw new CollectionException("The collection user doesn't exist");
            }
        }