Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpGet("{id}")]
- public Event GetById(Guid id)
- {
- return _repository.GetEventById(id);
- }
- public Event GetEventById(Guid id)
- {
- return _databaseContext.Events.FirstOrDefault(e => e.Id == id);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement