public GetBookOutput GetBookById(GetBookInput input)
        {
            var           getBook = _bookManager.GetBookByID(input.Id);
            GetBookOutput output  = Mapper.Map <Book, GetBookOutput>(getBook);

            return(output);
        }
示例#2
0
        public GetBookOutput GetBookById(GetBookInput input)
        {
            var book   = _bookManager.GetBookById(input.Id);
            var output = _mapper.Map <GetBookOutput>(book);

            return(output);
        }
示例#3
0
        public async Task <IList <BookInListDto> > GetBooks([FromBody] GetBookInput input)
        {
            var books = await _bookSevice.GetAsync(input);

            return(books);
        }