public IActionResult CancelTableBook(int id) { try { if (id == 0) { throw new Exception("bookId is missing"); } var companyPage = _tableService.CancelTableBookAsync(id); return(Ok(companyPage)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }