예제 #1
0
 public AddPlantViewModel(Company company)
 {
     _company = company;
     _companyPlantsService = new CompanyPlantsService(_company);
 }
예제 #2
0
 public PlantsViewModel(Company company)
 {
     _company = company;
     _companyPlantsService = new CompanyPlantsService(_company);
     PlantsList            = _companyPlantsService.GetCompanyPlants();
 }
예제 #3
0
 public ChangePlantViewModel(Plant plant)
 {
     _plant = plant;
     _companyPlantsService = new CompanyPlantsService(_plant.Company);
 }