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)); }