Example #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);
        }