public int Insert(IgnoreWord item)
 {
     using (_connection = Utilities.Database.GetProfiledOpenConnection())
     {
         const string query = "INSERT INTO IgnoreWords (IgnoreWordId, WordText) VALUES (@IgnoreWordId, @WordText)";
         return _connection.Execute(query, item);
     }
 }
Exemple #2
0
 public IgnoreWord Insert(IgnoreWord item)
 {
     item.IgnoreWordId = _ignoreWordRepository.Insert(item);
     return item;
 }