C# Class Ucrm.ItemManagement.Stock

Inheritance: INotifyPropertyChanged
Mostra file Open project: bytecode0101/uCRM

Public Methods

Method Description
AddNewProduct ( System.Guid productId, int quantity ) : void

This will add a new Product to our sstock

AddQuantity ( System.Guid productId, int quantity ) : void

This will add a new quantity to a specific product

RemoveQuantity ( System.Guid productId, int quantity ) : void

This will remove quantity from the stock

Search ( ) : int>.Dictionary

Searches the stock for products that have the specified tag(s)

Search ( string text ) : List

Delegate the Search to the Search chain

Stock ( ) : System

Method Details

AddNewProduct() public method

This will add a new Product to our sstock
public AddNewProduct ( System.Guid productId, int quantity ) : void
productId System.Guid
quantity int
return void

AddQuantity() public method

This will add a new quantity to a specific product
public AddQuantity ( System.Guid productId, int quantity ) : void
productId System.Guid
quantity int
return void

RemoveQuantity() public method

This will remove quantity from the stock
public RemoveQuantity ( System.Guid productId, int quantity ) : void
productId System.Guid
quantity int
return void

Search() public method

Searches the stock for products that have the specified tag(s)
public Search ( ) : int>.Dictionary
return int>.Dictionary

Search() public method

Delegate the Search to the Search chain
public Search ( string text ) : List
text string
return List

Stock() public method

public Stock ( ) : System
return System