Exemplo n.º 1
0
        public async Task <IActionResult> GetEvent(int id)
        {
            var eventFromRepo = await _repo.GetEvent(id);

            if (eventFromRepo == null)
            {
                return(NotFound());
            }

            return(Ok(eventFromRepo));
        }