private void NavToAddProduct(Product prod) { _addEditViewModel.EditMode = false; _addEditViewModel.SetProduct(prod); CurrentViewModel = _addEditViewModel; }
private void NavigateToEditProduct(SportsStoreDomainLibrary2.Entities.Product product) { _AddEditProductViewModel.EditFlag = true; _AddEditProductViewModel.SetProduct(product); CurrentViewModel = _AddEditProductViewModel; }
private void NavigateToEditProduct(Product product) { _addEditProductViewModel.EditFlag = true; _addEditProductViewModel.SetProduct(product); CurrentViewodel = _addEditProductViewModel; }