public async Task Consume(ConsumeContext <IBookingCancelEvent> context) { var data = context.Message; _bookingDataAccess.DeleteBooking(data.BookingId); }
// [Authorize] public async Task <IActionResult> Delete(int id) { var deleted = await _bookingDataAccess.DeleteBooking(id); return(deleted ? Ok() : NotFound()); }