public async Task <IActionResult> BookById(int id)
 {
     try
     {
         return(Ok(_libraryRepository.BookById(id)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }