public int DeleteContact(int Id) { SqlConnectionDB dataBase = new SqlConnectionDB("SqlConnection"); int rowsEffected; rowsEffected = dataBase.Delete(tableName: "dbo.ContactsTable", primaryKeyName: "id", poco: null, primaryKeyValue: Id); return(rowsEffected); }