public void Add(UserSettings item)
        {
            var insertCommand = DatabaseQueryMaker.CreateInsertUserSettings(item.UserId,
                                                                            _correcter.Correct(item.Alias),
                                                                            item.SendNewsletter);

            DatabaseQueryExecutor.Insert <UserSettings>(_connectionString, insertCommand);
        }
Пример #2
0
 public void Add(UserSettings item)
 {
     item.Alias = _correcter.Correct(item.Alias);
     _store.Add(item);
 }
Пример #3
0
 public override void Add(UserSettings item)
 {
     item.Alias = _correcter.Correct(item.Alias);
     base.Add(item);
 }