public async Task RemoveAsync(T entry) { using (GeneralContext database = new GeneralContext()) { database.Remove(entry); await database.SaveChangesAsync().ConfigureAwait(false); } }
protected async Task UpdateAsync(T entry) { using (GeneralContext database = new GeneralContext()) { database.Update(entry); await database.SaveChangesAsync().ConfigureAwait(false); } }