public IActionResult Listar() { try { return(Ok(repositorio.Listar())); } catch (Exception exc) { return(BadRequest(exc.Message)); } }
public IActionResult Get() { try { return(Ok(JogosRepository.Listar())); } catch (Exception ex) { return(BadRequest()); } }
public IActionResult Get() { return(Ok(_jogosRepository.Listar())); }