Skip to content

Commit

Permalink
Atualizado controller Evento
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamGBrito committed Mar 10, 2022
1 parent 4a3d1a0 commit ef1947a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Back/src/ProEventos.API/Controllers/EventoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class EventoController : ControllerBase
}
};
public EventoController()
{
{
}

[HttpGet]
Expand All @@ -47,9 +47,9 @@ public IEnumerable<Evento> Get()
}

[HttpGet("{id}")]
public IEnumerable<Evento> GetById(int id);
public IEnumerable<Evento> GetById(int id)
{
return _evento
return _evento.Where(evento => evento.EventoId == id);
}

[HttpPost]
Expand Down

0 comments on commit ef1947a

Please sign in to comment.