public async void EditProductClicked() { Product ProductEntity = await m_ProductDao.GetById(m_view.ModelId); m_viewModel = new ProductViewModel(ProductEntity); m_view.ShowModel(m_viewModel); }
public ProductPresenter(IProductView p_view) { m_view = p_view; PopulateData(); Product productDataEntity = new Product(); ProductViewModel productViewModel = new ProductViewModel(productDataEntity); m_view.MyModel = productViewModel; m_view.ShowModel(productViewModel); }