Esempio n. 1
0
        /// <summary>
        /// Create a new channelCustomer object and persist it into the database.
        /// </summary>
        /// <param name="channelCustomer">The channelCustomer object</param>
        public ChannelCustomer AddChannelCustomer(ChannelCustomer channelCustomer)
        {
            // Persist the object into the database
            channelCustomer.Save();

            // Return the new object with the new identifier (AUTO)
            return(channelCustomer);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a channelCustomer object and persist changes into the database
 /// </summary>
 /// <param name="channelCustomer"></param>
 public void UpdateChannelCustomer(ChannelCustomer channelCustomer)
 {
     // Persist the object into the database
     channelCustomer.Save();
 }