public IActionResult Index() { var leiloes = _servico.ConsultarLeiloes(); return(View(leiloes)); }
public IActionResult EndpointGetLeiloes() { var leiloes = _adminServico.ConsultarLeiloes(); return(Ok(leiloes)); }
public IEnumerable <Leilao> ConsultarLeiloes() { return(_defaultAdminServico.ConsultarLeiloes() .Where(x => x.Situacao != SituacaoLeilao.Arquivado) .ToList()); }