public async Task SaveOverShortSuggestedDocument(OverShortSuggestedDocument i) { if (i == null) { return; } using (var ctx = new OverShortSuggestedDocumentService()) { await ctx.UpdateOverShortSuggestedDocument(i).ConfigureAwait(false); } }
internal async Task SaveCNumber(IEnumerable <OversShortEX> slst, string cntxt) { if (slst.Any() || string.IsNullOrEmpty(cntxt)) { return; } using (var ctx = new OverShortSuggestedDocumentService()) { foreach (var os in slst) { var s = new OverShortSuggestedDocument() { OversShortsId = os.OversShortsId, CNumber = cntxt, TrackingState = TrackingState.Added }; await ctx.UpdateOverShortSuggestedDocument(s).ConfigureAwait(false); } } }