public static async Task <TodoItem> GetTodoItemAsync(string id, string partitionKey) { TodoItem item = await items.ReadItemAsync <TodoItem>(partitionKey, id); return(item); }
/// <summary> /// Read the Product /// </summary> /// <param name="id"></param> /// <param name="partitionKey"></param> /// <returns></returns> public static async Task <ProductInfo> GetProductInfoAsync(string id, string partitionKey) { ProductInfo item = await items.ReadItemAsync <ProductInfo>(partitionKey, id); return(item); }