コード例 #1
0
        public static async Task <TodoItem> GetTodoItemAsync(string id, string partitionKey)
        {
            TodoItem item = await items.ReadItemAsync <TodoItem>(partitionKey, id);

            return(item);
        }
コード例 #2
0
        /// <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);
        }