public void Create(string name)
        {
            var newAuthor = new Author
            {
                Id   = "7",
                Name = name
            };

            authorsRepository.Create(newAuthor);
        }
示例#2
0
 public int Create(Author author)
 {
     return(_authorsRepository.Create(author));
 }