Beispiel #1
0
    public void Delete(int StockID)
    {
        Stock stock = new Stock();

        stock.StockID = StockID;
        DAL_Stock StockDAL = new DAL_Stock();

        StockDAL.Delete(stock);
    }
Beispiel #2
0
    public List <Stock> SelectBySellerID(int SellerID)
    {
        Stock stock = new Stock();

        stock.SellerID = SellerID;
        DAL_Stock StockDAL = new DAL_Stock();

        return(StockDAL.SelectBySellerID(stock));
    }
Beispiel #3
0
    public Stock SelectOne(int StockID)
    {
        Stock stock = new Stock();

        stock.StockID = StockID;
        DAL_Stock StockDAL = new DAL_Stock();

        return(StockDAL.SelectOne(stock, 1));
    }
Beispiel #4
0
    public Stock SelectOne(int SellerID, int ModelID)
    {
        Stock stock = new Stock();

        stock.SellerID = SellerID;
        stock.ModelID  = ModelID;
        DAL_Stock StockDAL = new DAL_Stock();

        return(StockDAL.SelectOne(stock));
    }
Beispiel #5
0
    public void New(int ModelID, int SellerID, int Quantity)
    {
        Stock stock = new Stock();

        stock.ModelID  = ModelID;
        stock.SellerID = SellerID;
        stock.Quantity = Quantity;
        DAL_Stock StockDAL = new DAL_Stock();

        StockDAL.Insert(stock);
    }
Beispiel #6
0
    public void Update(int StockID, int ModelID, int SellerID, int Quantity)
    {
        Stock stock = new Stock();

        stock.StockID  = StockID;
        stock.ModelID  = ModelID;
        stock.SellerID = SellerID;
        stock.Quantity = Quantity;
        DAL_Stock StockDAL = new DAL_Stock();

        StockDAL.Update(stock);
    }