public DataTable LoadPlatt() { PlaGaDBfunk dbClass = new PlaGaDBfunk(); using (var conn = dbClass.Platt()) { DataTableFunk dataTablesFunktions = new DataTableFunk(); SqlDataReader reader; reader = conn.ExecuteReader(); DataTable dt = dataTablesFunktions.dt(); dt.Load(reader); return(dt); } }
public DataTable LoadGenre(string Email) { PlaGaDBfunk dbClass = new PlaGaDBfunk(); using (var conn = dbClass.Genre()) { conn.Parameters.AddWithValue("@Email", Email); DataTableFunk dataTablesFunktions = new DataTableFunk(); SqlDataReader reader; reader = conn.ExecuteReader(); DataTable dt = dataTablesFunktions.dt(); dt.Load(reader); return(dt); } }