public GetBookOutput GetBookById(GetBookInput input) { var getBook = _bookManager.GetBookByID(input.Id); GetBookOutput output = Mapper.Map <Book, GetBookOutput>(getBook); return(output); }
public GetBookOutput GetBookById(GetBookInput input) { var book = _bookManager.GetBookById(input.Id); var output = _mapper.Map <GetBookOutput>(book); return(output); }
public async Task <IList <BookInListDto> > GetBooks([FromBody] GetBookInput input) { var books = await _bookSevice.GetAsync(input); return(books); }