public IActionResult GetPadrao() { try { IEnumerable <ControleEmprestimoJogoDTO> controleEmprestimoJogos = ControleEmprestimoJogoAdapter.ControleEmprestimoJogoToDTOs(_controleEmprestimoJogoRepositorio.SelecionarComRelacionamento()); return(Ok(controleEmprestimoJogos)); } catch (Exception ex) { return(BadRequest(ex)); } }
public IActionResult Get() { try { IEnumerable <ControleEmprestimoJogoDTO> controleEmprestimoJogos = ControleEmprestimoJogoAdapter.ControleEmprestimoJogoToDTOs(_controleEmprestimoJogoRepositorio.SelecionarTodosJogosComUltimoControleEmprestimo(), false); return(Ok(controleEmprestimoJogos)); } catch (Exception ex) { return(BadRequest(ex)); } }