Example #1
0
        public void AddNotificationSetting(UserNotificationSetting setting)
        {
            if (!NotificationSetting.Exists(x => x.NotificationCodeId == setting.NotificationCodeId))
            {
                NotificationSetting.Add(setting);
            }

            EntityUpdated();
        }
Example #2
0
 public List <UserNotificationSetting> AddNotificationSettings(List <UserNotificationSetting> setting)
 {
     foreach (var item in setting)
     {
         if (!NotificationSetting.Exists(x => x.NotificationCodeId == item.NotificationCodeId))
         {
             NotificationSetting.Add(item);
         }
     }
     EntityUpdated();
     return(setting);
 }