Пример #1
0
        public IActionResult GetAllByGenre(int genre_id)
        {
            try
            {
                IEnumerable <EventDto> Result = _eventLogic.GetAllByGenre(genre_id);

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