public ThreeObjectsService() { if (GlobalVariable.logicType == 0) { threeObjectsRepository = new EntityThreeObjectsManager(); } else if (GlobalVariable.logicType == 1) { threeObjectsRepository = new SqlThreeObjectsManager(); } else if (GlobalVariable.logicType == 2) { threeObjectsRepository = new MySqlThreeObjectsManager(); } else if (GlobalVariable.logicType == 3) { threeObjectsRepository = new InnerThreeObjectsManager(); } else { threeObjectsRepository = new MongoThreeObjectsManager(); } }
public ThreeObjectsApiController(IThreeObjectsRepository _threeObjectsRepository) { threeObjectsRepository = _threeObjectsRepository; }