Example #1
0
        public GetAuthorOutput GetAuthorById(GetAuthorInput input)
        {
            var             getAuthor = _authorManager.GetAuthorByID(input.Id);
            GetAuthorOutput output    = Mapper.Map <Author, GetAuthorOutput>(getAuthor);

            return(output);
        }
Example #2
0
        public GetAuthorOutput GetAuthorById(GetAuthorInput input)
        {
            var getAuthor = _authorManager.GetAuthorById(input.Id);
            var output    = ObjectMapper.Map <GetAuthorOutput>(getAuthor);

            return(output);
        }
Example #3
0
        public GetAuthorOutput GetAuthorById(GetAuthorInput input)
        {
            var author = _authorManager.GetAuthorById(input.Id);
            var result = ObjectMapper.Map <GetAuthorOutput>(author);

            return(result);
        }