Example #1
0
        public ActionResult DeleteEvent(int eventId)
        {
            bool wasDeleted = eventDAO.DeleteEvent(eventId);

            if (wasDeleted)
            {
                return(NoContent());
            }
            else
            {
                return(BadRequest());
            }
        }
Example #2
0
        /// <summary>
        /// Delete the event from the service
        /// </summary>
        /// <returns></returns>
        public async Task DeleteEvent()
        {
            await DeserializerService <Event> .CheckConnectivity();

            await eService.DeleteEvent(this);
        }
Example #3
0
 public bool DeleteEvent(int id)
 {
     return(eventDAO.DeleteEvent(id));
 }