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)); }