コード例 #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);
 }