public IList <BookDto> GetAllBooks()
        {
            var bookDtos = new List <BookDto>();
            var books    = _bookRepository.FindAll();

            foreach (var book in books)
            {
                var bookDto = BookMappingConfiguration.MapToBookDto(book);
                bookDtos.Add(bookDto);
            }

            return(bookDtos.OrderBy(bk => bk.Title).ToList());
        }
        public BookDto GetBookById(Guid bookId)
        {
            var book = _bookRepository.FindBy(bookId);

            return(BookMappingConfiguration.MapToBookDto(book));
        }