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); } }
public bool AddRule(SkypeBotRule rule) { return(_dal.AddRule(rule)); }
public bool Post(SkypeBotRule newRule) { return(_ruleService.AddRule(newRule)); }