public POlineVM(ProductVM viewModel) { IsNew = true; Description = viewModel.TheEntity.Description; TheEntity = new POline { ProductID = viewModel.TheEntity.ProductID, Cost = viewModel.TheEntity.Cost }; }
public POlineVM() { // Initialise the entity or inserts will fail TheEntity = new POline(); }