public ProductListViewModel(iProductRepository productRepository) { _productRepository = productRepository; EditProductCommand = new RelayCommand <Product>(OnEditProduct); DeleteProductCommand = new RelayCommand <Product>(OnDeleteProduct); }
public AddEditProductViewModel(iProductRepository productRepository) { _productRepository = productRepository; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); }
public ProductEditSimpleMVVMViewModel() { _productRepository = new EFProductRepository(); SaveCommand = new RelayCommand(OnSave); }
public ProductsService(iProductRepository productsRepo, IMapper autoMapper) { _productsRepo = productsRepo; _autoMapper = autoMapper; }
static ProductController() { //Future Use: Can add build parameters here to specify alternate repositories. _context = new AdventureWorksDAL.Repositories.ProductRepo(); }
public ProductRditDirctView() { InitializeComponent(); _productRepository = new FfProductRepository(); }
public ProductEditDatabindView() { _productRepostory = new EFProductRepository(); InitializeComponent(); }
public ProductsController(iProductRepository repo) { _repo = repo; }