Ejemplo n.º 1
0
        public static ISkillSupportingMaterial <SkillSupportingMaterial> GetSkillSupportingMaterial()
        {
            ISkillSupportingMaterial <SkillSupportingMaterial> serviceObj = null;

            switch (sectionHandler.ConnectionStringName)
            {
            case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new SkillSupportingMaterialService(DatabaseFactory.CreateMongoDatabase());
                break;

            default: serviceObj = new SkillSupportingMaterialService(DatabaseFactory.CreateMongoDatabase());
                break;
            }
            return(serviceObj);
        }
Ejemplo n.º 2
0
 public static ISkillSupportingMaterial<SkillSupportingMaterial> GetSkillSupportingMaterial()
 {
     ISkillSupportingMaterial<SkillSupportingMaterial> serviceObj = null;
     switch (sectionHandler.ConnectionStringName)
     {
         case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new SkillSupportingMaterialService(DatabaseFactory.CreateMongoDatabase());
             break;
         default: serviceObj = new SkillSupportingMaterialService(DatabaseFactory.CreateMongoDatabase());
             break;
     }
     return serviceObj;
 }