public IHttpActionResult GetBooks() { var books = _context.Books.Include(b => b.Author).ToList(); if (books == null) { return(NotFound()); } var bookDtos = ConversionUtility.BooksToBookDtos(books); return(Ok(bookDtos)); }
public IHttpActionResult GetBooks() { var books = _context.Books.Include(b => b.Author).ToList(); if (books == null) { return(NotFound()); } var bookDtos = ConversionUtility.BooksToBookDtos(books); return(Ok(bookDtos)); }