Update nach User-Passwort-Change
This commit is contained in:
1 parent
93e3957702
commit
1ff218a129
93 files changed
+7399
-1071
No files matched your search
@@ -25,12 +25,23 @@ namespace BlazorApp.Controller
|
||||
httpcli.CallService("Schulhaus", Schulhausdata.ID.ToString(), "PUT", Schulhausdata);
|
||||
|
||||
}
|
||||
public static void InsertData(Schulhaus Schulhausdata)
|
||||
public static int InsertData(Schulhaus Schulhausdata)
|
||||
{
|
||||
Helper.HttpClientHelper httpcli = new Helper.HttpClientHelper();
|
||||
httpcli.CallService("Schulhaus", "", "POST", Schulhausdata);
|
||||
|
||||
List<BWPMModels.Schulhaus> LastSchulhaus = new List<Schulhaus>();
|
||||
LastSchulhaus = GetLast(Schulhausdata);
|
||||
return LastSchulhaus.First<Schulhaus>().ID;
|
||||
|
||||
}
|
||||
|
||||
public static List<Schulhaus> GetLast(Schulhaus Schulhausdata)
|
||||
{
|
||||
Helper.HttpClientHelper httpcli = new Helper.HttpClientHelper();
|
||||
string sql = "Select top 1 * from Schulhaus where mutierer='" + Schulhausdata.mutierer + "' order by erstellt_am desc";
|
||||
httpcli.CallService("Schulhaus", "usersql/" + sql, "GET", Schulhausdata);
|
||||
return JsonConvert.DeserializeObject<List<Schulhaus>>(httpcli.Results.daten);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user