public ClassViewModel() { AddCommand = new DelegateCommand(Add, canAdd); stacklist = new ObservableCollection <Product>(); data = new ProductDataLayer(); productlist = data.getallProducts(); }
public ObservableCollection <Product> GetAllProducts() { ProductDataLayer data = new ProductDataLayer(); return(productlist = data.getallProducts()); }