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." })); } }