public static async Task <TodoItem> UpdateItemAsync(TodoItem item) { return(await items.ReplaceItemAsync <TodoItem>(item.Category, item.Id, item)); }
public static async Task <TodoItem> GetTodoItemAsync(string id, string partitionKey) { TodoItem item = await items.ReadItemAsync <TodoItem>(partitionKey, id); return(item); }