Beispiel #1
0
 public void UpdateModifier(Modifier modifier)
 {
     _rssRepository.UpdateModifier(modifier);
 }
Beispiel #2
0
 public void UpdateModifier(Modifier modifier)
 {
     var query = @"update Rss_Modifier set [Target] = @Target, Value = @Value where Id = @Id";
     _connection.Execute(query, modifier);
 }
Beispiel #3
0
 public Modifier CreateModifier(Modifier modifier)
 {
     _rssRepository.CreateModifier(modifier);
     return modifier;
 }
Beispiel #4
0
 public void CreateModifier(Modifier modifier)
 {
     var query = @"insert into Rss_Modifier (FilterId, Target, Value) values(@FilterId, @Target, @Value); select last_insert_rowid();";
     modifier.Id = _connection.Query<int>(query, modifier).First();
 }