private async Task DeleteOverShortDetail(OverShortDetail osd) { using (var ctx = new OverShortDetailService()) { await ctx.DeleteOverShortDetail(osd.OverShortDetailId.ToString()).ConfigureAwait(false); } }
public async Task <IEnumerable <OverShortDetail> > SearchOverShortDetail(List <string> lst, List <string> includeLst = null) { using (var ctx = new OverShortDetailService()) { return(await ctx.GetOverShortDetailsByExpressionLst(lst, includeLst).ConfigureAwait(false)); } }
private async Task UpdateOverShortDetail(OverShortDetail osd) { using (var ctx = new OverShortDetailService()) { await ctx.UpdateOverShortDetail(osd).ConfigureAwait(false); } }
public async Task SaveOverShortDetail(OverShortDetail i) { if (i == null) { return; } using (var ctx = new OverShortDetailService()) { await ctx.UpdateOverShortDetail(i).ConfigureAwait(false); } }