Ejemplo n.º 1
0
        public async Task <IActionResult> UpdateBookingStatusAsync(int id, [FromBody] BookingStatus bookingStatusModel)
        {
            try
            {
                var booking = await service.UpdateBookingStatusAsync(id, bookingStatusModel);

                return(Ok(booking));
            }
            catch (Exception ex)
            {
                var exceptionResponse = GetExceptionResponse(ex, Request);
                return(exceptionResponse);
            }
        }