/// <summary> /// Initializes a new instance of the <see cref="TBOController"/> class. /// </summary> /// <param name="tboService">The TBO service.</param> /// <param name="configuration">Web Configuration</param> /// <param name="hostingEnvironment">Hosting Enviorment</param> public TBOController( ITBOService tboService, IConfiguration configuration, IHostingEnvironment hostingEnvironment) { this.hostingEnvironment = hostingEnvironment; this.tboService = tboService; this.configuration = configuration; }
/// <summary> /// Initializes a new instance of the <see cref="UserController" /> class. /// </summary> /// <param name="stateService">State Service</param> /// <param name="homePageService">Home Page Service</param> /// <param name="tboService">TBO Service</param> /// <param name="configuration">Web Config</param> /// <param name="countryService">Country Service</param> /// <param name="cityService">City Service</param> /// <param name="mapper">The mapper.</param> /// <param name="userDetailService">The user detail service.</param> /// <param name="hostingEnvironment">The hosting environment.</param> /// <param name="domainSetting">The domain setting.</param> public UserController(IStateService stateService, IHomePageService homePageService, ITBOService tboService, IConfiguration configuration, ICountryService countryService, ICityService cityService, IMapper mapper, IUserDetailService userDetailService, IHostingEnvironment hostingEnvironment, IOptions <DomainSetting> domainSetting) : base(mapper, homePageService, cityService, countryService, configuration, stateService) { this.configuration = configuration; this.mapper = mapper; this.userDetailService = userDetailService; this.domainSetting = domainSetting.Value; this.hostingEnvironment = hostingEnvironment; this.tboController = new TBOController(tboService, configuration, hostingEnvironment); }