public AuthorBO NewAuthor(string _name) { // Get the ID returned from the new entry int _authorID = dataContext.AddAuthor(_name); // Create a new Business Layer Object and define it AuthorBO rval = new AuthorBO(); rval.AuthorID = _authorID; rval.Name = _name; // Return the new object return(rval); }
public void UpdateAuthor(AuthorBO author) { dataContext.UpdateAuthor(author.AuthorID, author.Name); }
public void DeleteAuthor(AuthorBO author) { DeleteAuthor(author.AuthorID); }