コード例 #1
0
ファイル: Allocation.cs プロジェクト: Alphaquest2005/WaterNut
 private static async Task SaveSubItem(SubItems subitm)
 {
     if (subitm == null)
     {
         return;
     }
     using (var ctx = new SubItemsService())
     {
         await ctx.UpdateSubItems(subitm).ConfigureAwait(false);
     }
 }
コード例 #2
0
 public async Task SaveSubItems(SubItems i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new SubItemsService())
     {
         await ctx.UpdateSubItems(i).ConfigureAwait(false);
     }
 }