private async Task AddtoDBAsync() { AppClient client = new AppClient(); try { await Task.Run(() => client.AddNotification(NewNotification.NewNotification)); } finally { client.Close(); } }