Untitled
unknown
plain_text
10 months ago
667 B
5
Indexable
public async Task<bool> LeaveSchool(string schid) { 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