Exemplo n.º 1
0
        public async Task <ReadOnlyCollection <AllClubsResult> > GetAllClubsAsync()
        {
            if (_allClubsResult == null)
            {
                _allClubsResult = await _clubRepository.GetAllClubsAsync();

                if (_allClubsResult != null && _allClubsResult.Count > 0)
                {
                    _allClubsResultDate = DateTime.Now;
                }
            }

            return(_allClubsResult);
        }