public CellphoneService() { if (GlobalVariable.logicType == 0) { cellphoneRepository = new EntityCellphoneManager(); } else if (GlobalVariable.logicType == 1) { cellphoneRepository = new SqlCellphoneManager(); } else if (GlobalVariable.logicType == 2) { cellphoneRepository = new MySqlCellphoneManager(); } else if (GlobalVariable.logicType == 3) { cellphoneRepository = new InnerCellphoneManager(); } else { cellphoneRepository = new MongoCellphoneManager(); } }
public CellphoneApiController(ICellphoneRepository _cellphoneRepository) { cellphoneRepository = _cellphoneRepository; }