public async Task<Book> AddAsync(Book book) { IEnumerable<Book> booksInDb = await _bookRepo.GetAllSimilarBooksAsync(book); if (booksInDb.Any()) { throw new ApiException(MessagesResource.BOOK_ALREADY_EXISTS); } return await _bookRepo.AddAsync(book); }