private async void DeleteEventMethod(SfPopupLayout parameter) { await EventServices.DeleteEvent(EventToDelete); GetEvents(); }
public IHttpActionResult DeleteEvent(int?id) { try { if (!id.HasValue) { return(BadRequest()); } List <int?> ids = new List <int?>(); ids.Add(id.Value); var result = oSvc.DeleteEvent(ids); return(Ok(result)); } catch (Exception ex) { EventModel result = new EventModel() { //Exception = _exception.Set(ExceptionType.CATCH, ex) }; return(Ok(ex)); }; }