示例#1
0
        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);
        }
示例#2
0
 public void UpdateAuthor(AuthorBO author)
 {
     dataContext.UpdateAuthor(author.AuthorID, author.Name);
 }
示例#3
0
 public void DeleteAuthor(AuthorBO author)
 {
     DeleteAuthor(author.AuthorID);
 }