Exemplo n.º 1
0
        public async Task <IActionResult> GetAll()
        {
            var books = await _bookService.GetAllAsync();

            return(Ok(_mapper.Map <IEnumerable <BookDto> >(books)));
        }