public async Task <IActionResult> CancelBookingDetail(int id) { var book = await _context.CancelBookingDetail(id); if (book == null) { throw new NullReferenceException(); } return(Ok(book)); }