// POST api/events/event public async Task <IHttpActionResult> PostEvent(EventDTO events) { var eventValidation = await _eventServices.PostEvent(events); if (eventValidation == 0) { return(Ok(HttpStatusCode.Created)); } return(BadRequest("Event Already exists at the requested time")); }