예제 #1
0
        private async void DeleteEventMethod(SfPopupLayout parameter)

        {
            await EventServices.DeleteEvent(EventToDelete);

            GetEvents();
        }
예제 #2
0
        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));
            };
        }