public ApprovalTypeService() { if (GlobalVariable.logicType == 0) { approvalTypesRepository = new EntityApprovalTypeManager(); } else if (GlobalVariable.logicType == 1) { approvalTypesRepository = new SqlApprovalTypeManager(); } else if (GlobalVariable.logicType == 2) { approvalTypesRepository = new MySqlApprovalTypeManager(); } else if (GlobalVariable.logicType == 3) { approvalTypesRepository = new InnerApprovalTypeManager(); } else { approvalTypesRepository = new MongoApprovalTypeManager(); } }
public ApprovalTypeApiController(IApprovalTypesRepository _approvalTypesRepository) { approvalTypesRepository = _approvalTypesRepository; }