public AdminController(IFreelancingPlatform freelancingPlatform, UserManager <User> userManager, IOptions <FreelancingPlatformConfig> freelancingPlatformOptions, IJobMapper jobMapper) { _freelancingPlatform = freelancingPlatform; _userManager = userManager; _freelancingPlatformOptions = freelancingPlatformOptions; _jobMapper = jobMapper; _takeAmount = freelancingPlatformOptions.Value.TakeAmount; }
public JobController(IFreelancingPlatform freelancingPlatform, UserManager <User> userManager, IHostingEnvironment environment, IOptions <PhotoConfig> photoOptions, IOptions <FreelancingPlatformConfig> fpOptions, IJobMapper jobMapper) { _freelancingPlatform = freelancingPlatform; _userManager = userManager; _environment = environment; _photoOptions = photoOptions; _jobMapper = jobMapper; _takeAmount = fpOptions.Value.TakeAmount; }
public JobService(IJobRepository repository, IJobMapper mapper) { _repository = repository; _mapper = mapper; }