コード例 #1
0
        public async Task Consume(ConsumeContext <IBookingCancelEvent> context)
        {
            var data = context.Message;

            _bookingDataAccess.DeleteBooking(data.BookingId);
        }
コード例 #2
0
        // [Authorize]
        public async Task <IActionResult> Delete(int id)
        {
            var deleted = await _bookingDataAccess.DeleteBooking(id);

            return(deleted ? Ok() : NotFound());
        }