public async Task <string> UpdateDb(string sqlStatements, Action <string> completed) { Debug.WriteLine("UpdateServiceClient instantiated"); Debug.WriteLine("SaveChangesAsync Async called"); try { string msg = ""; msg = await proxy.SaveChangesAsync(sqlStatements); return(msg); } catch (Exception ex) { return(""); } }
private async Task <string> DoWork(string sqlStatements) { var proxy = new UpdateServiceClient(); Debug.WriteLine("UpdateServiceClient instantiated"); System.Diagnostics.Debug.WriteLine("SaveChangesAsync Async called"); try { string msg = ""; msg = await proxy.SaveChangesAsync(sqlStatements); return(msg); } catch (Exception ex) { return(""); } }