Esempio n. 1
0
 public bool AddRule(SkypeBotRule newRule)
 {
     using (var connection = new SQLiteConnection(_dbFilePath, SQLiteOpenFlags.ReadWrite))
     {
         SQLiteCommand command = connection.CreateCommand("insert into Rules(Name, Rule, Value) values (?,?,?)"
                                                          , newRule.Name
                                                          , newRule.Rule
                                                          , newRule.Value);
         return(command.ExecuteNonQuery() > 0);
     }
 }
Esempio n. 2
0
 public bool AddRule(SkypeBotRule rule)
 {
     return(_dal.AddRule(rule));
 }
Esempio n. 3
0
 public bool Post(SkypeBotRule newRule)
 {
     return(_ruleService.AddRule(newRule));
 }