public CancellationMailHelper(ObservableCollection<PlayerMatch> playerMatches, IFootballRepository footballRepository, string fromAddress)
 {
     _playerMatches = playerMatches;
     _fromAddress = fromAddress;
     _footballRepository = footballRepository;
     _toAddresses = GetEmailAddresses();
     _players = _footballRepository.GetAllPlayers();
 }
Ejemplo n.º 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);
        }