public ActionResult DeleteEvent(int eventId) { bool wasDeleted = eventDAO.DeleteEvent(eventId); if (wasDeleted) { return(NoContent()); } else { return(BadRequest()); } }
/// <summary> /// Delete the event from the service /// </summary> /// <returns></returns> public async Task DeleteEvent() { await DeserializerService <Event> .CheckConnectivity(); await eService.DeleteEvent(this); }
public bool DeleteEvent(int id) { return(eventDAO.DeleteEvent(id)); }