Example #1
0
 public static async Task <TodoItem> UpdateItemAsync(TodoItem item)
 {
     return(await items.ReplaceItemAsync <TodoItem>(item.Category, item.Id, item));
 }
Example #2
0
 /// <summary>
 /// Update the Product
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 public static async Task <ProductInfo> UpdateProductAsync(ProductInfo item)
 {
     return(await items.ReplaceItemAsync <ProductInfo>(item.CategoryName, item.Id, item));
 }