Exemplo n.º 1
0
        public async Task <IActionResult> AddAuthorRest(string authorName)
        {
            var author = await _bookManager.CreateAuthorAsync(authorName);

            return(Json(new { author.Id, author.Name }));
        }