/// <summary>
 /// </summary>
 /// <param name="dao"></param>
 /// <exception cref="ArgumentNullException">dao is null.</exception>
 public void Save(INotifyTypeDao dao)
 {
     if (dao == null)
         throw new ArgumentNullException("dao");
     NotifyType type = Id != null ? dao.Get(Id) : new NotifyType();
     type.Name = Name;
     type.Remark = Remark;
     type.CommunicationType = CommunicationType;
     dao.SaveOrUpdate(type);
     dao.Flush();
 }
        /// <summary>
        /// </summary>
        /// <param name="dao"></param>
        /// <exception cref="ArgumentNullException">dao is null.</exception>
        public void Save(INotifyTypeDao dao)
        {
            if (dao == null)
            {
                throw new ArgumentNullException("dao");
            }
            NotifyType type = Id != null?dao.Get(Id) : new NotifyType();

            type.Name              = Name;
            type.Remark            = Remark;
            type.CommunicationType = CommunicationType;
            dao.SaveOrUpdate(type);
            dao.Flush();
        }