public async Task <Result <int> > CreateCommitment([FromBody] UpdateCommitmentArg updateCommitmenArg) { Result <int> r = null; await Task.Run(() => { string sql = null; r = ResultRunner <int> .Run(delegate() { return(OVPRBus.CreateCommitment(LoggededInUserEmail, updateCommitmenArg.CommitmentChangeEnt, updateCommitmenArg.Files, out sql)); }); r.SQL = sql; }); return(r); }
public async Task <Result <int> > UpdateCommitment([FromBody] UpdateCommitmentArg updateCommitmenArg) { //var x = ""; //OVPRBus.UpdateCommitment(LoggededInUserEmail, updateCommitmenArg.CommitmentChangeEnt, updateCommitmenArg.Files, out x); Result <int> r = null; string sql = null; await Task.Run(() => { r = ResultRunner <int> .Run(delegate() { OVPRBus.UpdateCommitment(LoggededInUserEmail, updateCommitmenArg.CommitmentChangeEnt, updateCommitmenArg.Files, out sql); }); r.SQL = sql; }); return(r); }