Update vor Clone
This commit is contained in:
@@ -20,13 +20,25 @@ namespace BlazorApp.Controller
|
||||
return dbh.ConvertDataTable<Lehrer>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static List<Lehrer> GetAllActiveData()
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from Lehrer where aktiv=1", false, true);
|
||||
return dbh.ConvertDataTable<Lehrer>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static List<Lehrer> GetByID(int ID)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from Lehrer where id=" + ID.ToString(), false, true);
|
||||
return dbh.ConvertDataTable<Lehrer>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static List<Lehrer> GetByEMail(string EMail)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from Lehrer where aktiv=1 and EMail='" + EMail+"'", false, true);
|
||||
return dbh.ConvertDataTable<Lehrer>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
public static List<Lehrer> GetByUserID(string UserID)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
|
||||
Reference in New Issue
Block a user