public async Task <IActionResult> BookSearch(BookSearchRequest bookSearch) { try { var data = await _bookBusiness.SearchBook(bookSearch); if (data != null) { success = true; message = "Book Fetched Successfully"; return(Ok(new { success, message, data })); } else { message = "Book Not Found"; return(NotFound(new { success, message })); } } catch (Exception ex) { return(BadRequest(ex.Message)); } }