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); } }
public IgnoreWord Insert(IgnoreWord item) { item.IgnoreWordId = _ignoreWordRepository.Insert(item); return item; }