Exemple #1
0
 public static void Delete(int id)
 {
     DbHelper.ExecuteNonQuery("DELETE FROM Users WHERE Id=@Id", CommandType.Text, new MySqlParameter[] { new MySqlParameter("@Id", id) });
 }
 public static void Delete(int id, int siteId)
 {
     DbHelper.ExecuteNonQuery("DELETE FROM Services WHERE Id=@Id AND SiteId=@SiteId", CommandType.Text, new MySqlParameter[] { new MySqlParameter("@Id", id), new MySqlParameter("@SiteId", siteId) });
 }