Exemplo n.º 1
0
        public ActionResult <Author> CreateAuthor(Author author)
        {
            _businessObj.AddAuthor(author);



            return(CreatedAtRoute("GetAuthor",
                                  new { authorId = author.Id },
                                  author));
        }