Beispiel #1
0
        public IActionResult GetAuthor(Guid authorId)
        {
            var authorFromRepo = _discussionWebRepository.GetAuthor(authorId);

            if (authorFromRepo == null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <AuthorDto>(authorFromRepo)));
        }