Exemple #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var bookingToDelete = context.FindExistingBooking(id);

            if (bookingToDelete == null)
            {
                return(NotFound());
            }

            await context.DeleteBooking(bookingToDelete);

            return(new NoContentResult());
        }