コード例 #1
0
        public IActionResult GetEvent(int id)
        {
            Event eventData = eventDao.GetEventInfo(id);

            if (eventData.EventName != "")
            {
                return(Ok(eventData));
            }
            else
            {
                return(BadRequest(new { message = "An error occurred and the event was not retrieved." }));
            }
        }