Example #1
0
        public async Task <IHttpActionResult> Delete(int id)
        {
            try
            {
                await _eventUtilitiesService.DeleteEventTypeAsync(id, GetUserAndOrganization());

                return(Ok());
            }
            catch (EventException e)
            {
                return(BadRequest(e.Message));
            }
            catch (ValidationException e)
            {
                return(BadRequestWithError(e));
            }
        }