Untitled
unknown
plain_text
2 years ago
541 B
14
Indexable
//Delete function
try
{
var getschoolkey = (await client
.Child($"StudentAccount/{key}/Schools")
.OnceAsync<Schools>()).FirstOrDefault
(a => a.Object.SchoolID == schid);
if (getschoolkey != null)
{
await client
.Child($"StudentAccount/{key}/Schools")
.Child(getschoolkey.Key)
.DeleteAsync();
client.Dispose();
return true;
}
client.Dispose();
return false;
}
catch
{
client.Dispose();
return false;
}Editor is loading...
Leave a Comment