public ItemDePlanoComercialViewModel AdicionaItem(ModeloViewModel modelo) { var model = planoComercial.model.AdicionaItem(modelo.GetModel()); var viewModel = ItemDePlanoComercialViewModel.From(model, repositorioDePlanosComerciais, repositorioDeModelos); viewModel.itemDePlanoComercial = model; Add(viewModel); return(viewModel); }
public bool Contains(ModeloViewModel modelo) { var contains = planoComercial.model.ExisteItemDoModelo(modelo.GetModel()); return(contains); }