Beispiel #1
0
        public IActionResult GetByIdWithDetails(int id)
        {
            try
            {
                var @event = _eventLogic.GetByIdWithDetails(id);

                if (@event == null)
                {
                    return(NotFound());
                }

                return(Ok(@event));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, "Internal server error"));
            }
        }