예제 #1
0
        public async Task <IActionResult> DeleteBookings(Guid bookingid)
        {
            var bookings = _repository.GetBooking(bookingid);

            if (bookingid != null)
            {
                return(Ok(await _repository.DeleteBookingAsync(bookings)));
            }
            return(NotFound($"Guests with id: {bookingid} was not found"));
        }
 public async Task <bool> DeleteBookingAsync(int bookingId)
 {
     return(await bookingFunctions.DeleteBookingAsync(bookingId));
 }