public ActionResult AddNewAuthor(AuthorCreateDTO author) { var guid = authorService.AddNewAuthor(author); string location = linkGenerator.GetPathByAction("GetAuthorByID", "Author", new { authorID = guid }); return(Created(location, guid)); }