public GetAuthorOutput GetAuthorById(GetAuthorInput input) { var getAuthor = _authorManager.GetAuthorByID(input.Id); GetAuthorOutput output = Mapper.Map <Author, GetAuthorOutput>(getAuthor); return(output); }
public GetAuthorOutput GetAuthorById(GetAuthorInput input) { var getAuthor = _authorManager.GetAuthorById(input.Id); var output = ObjectMapper.Map <GetAuthorOutput>(getAuthor); return(output); }
public GetAuthorOutput GetAuthorById(GetAuthorInput input) { var author = _authorManager.GetAuthorById(input.Id); var result = ObjectMapper.Map <GetAuthorOutput>(author); return(result); }