private static async Task SaveSubItem(SubItems subitm) { if (subitm == null) { return; } using (var ctx = new SubItemsService()) { await ctx.UpdateSubItems(subitm).ConfigureAwait(false); } }
public async Task SaveSubItems(SubItems i) { if (i == null) { return; } using (var ctx = new SubItemsService()) { await ctx.UpdateSubItems(i).ConfigureAwait(false); } }