public SkillsController() { _skillService = new SkillService(new SkillRepository(db)); _TrainingCourseService = new TrainingCourseService(new TrainingCourseRepository(db)); _PostService = new PostService(new PostRepository(db)); _EmployeeService = new EmployeeService(new EmployeeRepository(db)); }
public TrainingCoursesController() { _TrainingCourseService = new TrainingCourseService(new TrainingCourseRepository(db)); _employeeService = new EmployeeService(new EmployeeRepository(db)); _SkillService = new SkillService(new SkillRepository(db)); _CheckUpReportService = new CheckUpReportService(new CheckUpReportRepository(db)); }
public AuthenticateController(ITrainingCourseService trainingCourseService, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, Microsoft.Extensions.Configuration.IConfiguration configuration) { this.userManager = userManager; this.signInManager = signInManager; this.configuration = configuration; this.trainingCourseService = trainingCourseService; }
public DogController(IPropertyMappingService propertyMappingService, IMapper mapper, IDogService dogService, ITrainingCourseService trainingCourseService) { this.mapper = mapper; this.propertyMappingService = propertyMappingService; this.dogService = dogService; this.trainingCourseService = trainingCourseService; }
/// <summary> /// To delete a particular training course of jobseeker /// </summary> /// <param name="id">training course id</param> public void Delete(string id) { ITrainingCourseService <TrainingCourse> jobSeekerTrainingCourseService = ServiceFactory.GetJobSeekerTrainingCourse(); var jobSeekerTrainingCourse = jobSeekerTrainingCourseService.GetById(id); jobSeekerTrainingCourseService.Delete(jobSeekerTrainingCourse); }
public TeacherController(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IReferentialTeacherService referentialTeacherService, ITrainingCenterService trainingCenterService, ITrainingCourseService trainingCourseService, ITitleService titleService, ITeacherService TeacherService, IStateService stateService, ICityService cityService) { _unitOfWork = unitOfWork; _userManager = userManager; _TeacherService = TeacherService; _stateService = stateService; _cityService = cityService; _trainingCenterService = trainingCenterService; _titleService = titleService; _referentialTeacherService = referentialTeacherService; }
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 TeacherService(HttpContextBase httpContextBase, IUnitOfWork unitOfWork, IApplicationUserManager userManager, ITrainingCenterService trainingCenter, ITrainingCourseService trainingCourse, IMappingEngine mappingEngine, IReferentialTeacherService referentialTeacherService, ITitleService titleService, IStateService stateService, ICityService cityService ) { _userManager = userManager; _unitOfWork = unitOfWork; _Teachers = _unitOfWork.Set<Teacher>(); _mappingEngine = mappingEngine; _cityService = cityService; _stateService = stateService; _titleService = titleService; _httpContextBase = httpContextBase; _referentialTeacherService = referentialTeacherService; _trainingCenterService = trainingCenter; _trainingCourseService = trainingCourse; }
public TrainingCourseController(IUnitOfWork unitOfWork, ITrainingCourseService trainingCourseService) { _unitOfWork = unitOfWork; _trainingCourseService = trainingCourseService; }
public TrainingCourseController(ITrainingCourseService trainingCourseService) { _trainingCourseService = trainingCourseService; }
public TrainingCourseController(IInstructorService instructorService, ITrainingCourseService courseService, IMapper mapper) { this.courseService = courseService; this.instructorService = instructorService; this.mapper = mapper; }