public static ITrainingCourseService <TrainingCourse> GetJobSeekerTrainingCourse() { ITrainingCourseService <SkillSmart.Dto.TrainingCourse> serviceObj = null; switch (sectionHandler.ConnectionStringName) { case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new TrainingCourseService(DatabaseFactory.CreateMongoDatabase()); break; default: serviceObj = new TrainingCourseService(DatabaseFactory.CreateMongoDatabase()); break; } return(serviceObj); }
public static ITrainingCourseService<TrainingCourse> GetJobSeekerTrainingCourse() { ITrainingCourseService<SkillSmart.Dto.TrainingCourse> serviceObj = null; switch (sectionHandler.ConnectionStringName) { case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new TrainingCourseService(DatabaseFactory.CreateMongoDatabase()); break; default: serviceObj = new TrainingCourseService(DatabaseFactory.CreateMongoDatabase()); break; } return serviceObj; }