Example #1
0
 public AdminController(IFreelancingPlatform freelancingPlatform, UserManager <User> userManager,
                        IOptions <FreelancingPlatformConfig> freelancingPlatformOptions, IJobMapper jobMapper)
 {
     _freelancingPlatform        = freelancingPlatform;
     _userManager                = userManager;
     _freelancingPlatformOptions = freelancingPlatformOptions;
     _jobMapper  = jobMapper;
     _takeAmount = freelancingPlatformOptions.Value.TakeAmount;
 }
Example #2
0
 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;
 }
Example #3
0
 public JobService(IJobRepository repository, IJobMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }