iinventory.cs
来自「ASP.net网站开发四“酷”全书:新闻、论坛、电子商城、博客_源码」· CS 代码 · 共 26 行
CS
26 行
using System;
using BookShop.Model;
namespace BookShop.IDAL{
/// <summary>
/// Interface for the Inventory DAL
/// </summary>
public interface IInventory{
/// <summary>
/// Get the current stock level of an Item
/// </summary>
/// <param name="ItemId">Unique identifier for an item</param>
/// <returns>Quantity in stock</returns>
int CurrentQtyInStock(string ItemId);
/// <summary>
/// Reduces the stock level by the given quantity for items in an order
/// </summary>
/// <param name="items">Array of order lineitem</param>
void TakeStock(LineItemInfo[] items);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?