Example #1
0
        public IHttpActionResult Delete(int id)
        {
            try
            {
                var booking = _bookingServices.Get(id);
                if (booking == null)
                {
                    return(NotFound());
                }

                _bookingServices.Delete(id);
                return(Ok());
            }catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }