Пример #1
0
        public async Task <IActionResult> Get(Guid id)
        {
            if (id == Guid.Empty)
            {
                BadRequest();
            }

            var author = await _authorManager.GetAuthorByIdAsync(id);

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

            return(Ok(author));
        }