Esempio n. 1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="noticeSettings"></param>
 /// <param name="invitationSettings"></param>
 public MessagesSettingEditModel(NoticeSettings noticeSettings, InvitationSettings invitationSettings)
 {
     if (noticeSettings != null)
     {
         NoticeTypeSettings = noticeSettings.NoticeTypeSettingses;
     }
     if (invitationSettings != null)
     {
         InvitationTypeSettings = invitationSettings.InvitationTypeSettingses;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 转换为实体
        /// </summary>
        /// <param name="invitationSettings"></param>
        /// <returns></returns>
        public NoticeSettings AsMessagesSettings(out InvitationSettings invitationSettings)
        {
            NoticeSettings noticeSettings = new NoticeSettings();

            noticeSettings.NoticeTypeSettingses = NoticeTypeSettings;

            invitationSettings = new InvitationSettings();
            invitationSettings.InvitationTypeSettingses = InvitationTypeSettings;

            return(noticeSettings);
        }
Esempio n. 3
0
 public void Save(NoticeSettings noticeSettings)
 {
     repository.Save(noticeSettings);
 }