Beispiel #1
0
        public IActionResult GetJogoByPlataforma(Enum.Plataforma plataforma)
        {
            IList <Jogo> listaJogos = _jogoService.GetJogoByPlataforma(plataforma);

            if (listaJogos.Any())
            {
                return(Ok(listaJogos));
            }

            return(NotFound());
        }
Beispiel #2
0
 public IList <Jogo> GetJogoByPlataforma(Enum.Plataforma plataforma)
 {
     return(_jogoRepositorio.GetJogoByPlataforma(plataforma));
 }