コード例 #1
0
        public IActionResult CreateEvent([FromBody] Event inputEvent)
        {
            bool result = eventDao.AddEventInfo(inputEvent);

            if (result)
            {
                return(Ok(inputEvent));
            }
            else
            {
                return(BadRequest(new { message = "An error occurred and the event was not created." }));
            }
        }