コード例 #1
0
 public ReleaseController(IReleaseService releaseService, IValidateService validateService,
                          ICompanyUpdateService companyUpdateService, ICompanyService company,
                          ICompanyReleaseService companyReleaseService)
 {
     _releaseService        = releaseService;
     _validateService       = validateService;
     _companyUpdateService  = companyUpdateService;
     _companyService        = company;
     _companyReleaseService = companyReleaseService;
     _directoryPath         = $"{HttpRuntime.AppDomainAppPath}Release";
     if (!Directory.Exists(_directoryPath))
     {
         Directory.CreateDirectory(_directoryPath);
     }
 }
コード例 #2
0
 public CompanyController(ILogger <CompanyController> logger, IMapper mapper, ICompanyCreateService companyCreateService, ICompanyGetService companyGetService, ICompanyUpdateService companyUpdateService)
 {
     this.Logger = logger;
     this.CompanyCreateService = companyCreateService;
     this.CompanyGetService    = companyGetService;
     this.CompanyUpdateService = companyUpdateService;
     this.Mapper = mapper;
 }
コード例 #3
0
 public CompanyApiController(ICompanyService companyService, ICompanyUpdateService companyUpdateService)
 {
     _companyService       = companyService;
     _companyUpdateService = companyUpdateService;
 }