public CancellationMailHelper(ObservableCollection<PlayerMatch> playerMatches, IFootballRepository footballRepository, string fromAddress)
 {
     _playerMatches = playerMatches;
     _fromAddress = fromAddress;
     _footballRepository = footballRepository;
     _toAddresses = GetEmailAddresses();
     _players = _footballRepository.GetAllPlayers();
 }
예제 #2
0
        public async Task <ActionResult <IEnumerable <Player> > > Get()
        {
            var players = await _wvuFootballRepository.GetAllPlayers();

            if (players == null || !players.Any())
            {
                return(new NotFoundResult()); // 404
            }

            return(players);
        }