public Author Update(Author author) { var authorDetails = _authorRepository.Get(author.Id); authorDetails.Name = author.Name; _authorRepository.CommitChanges(); return authorDetails; }
public Author Insert(Author author) { var authorDetails = new Author(); authorDetails.Name = author.Name; authorDetails = _authorRepository.InsertOnCommit(authorDetails); _authorRepository.CommitChanges(); return authorDetails; }