public AuthorByIdViewModel GetAuthorById(int id) { Author author = _authorRepository.GetById(id); AuthorByIdViewModel authorByIdView = Mapper.Map <Author, AuthorByIdViewModel>(author); return(authorByIdView); }
public AuthorByIdViewModel GetAuthorById(int id) { AuthorByIdViewModel authorByIdViewModel = _authorService.GetAuthorById(id); return(authorByIdViewModel); }