public TouristRoutePicturesController(ITouristRouteRepository touristRouteRepository, IMapper mapper)
 {
     _touristRouteRepository = touristRouteRepository ??
                               throw new ArgumentNullException(nameof(touristRouteRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
예제 #2
0
 public TouristRoutesController(ITouristRouteRepository touristRouteRepository, IMapper mapper,
                                IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor)
 {
     _touristRouteRepository = touristRouteRepository;
     _mapper    = mapper;
     _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);;
 }
 public TouristRoutesController(ITouristRouteRepository touristRouteRepository, IMapper mapper, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IPropertyMappingService propertyMappingService)
 {
     _touristRouteRepository = touristRouteRepository;
     _mapper = mapper;
     _propertyMappingService = propertyMappingService;
     _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
 }
예제 #4
0
 public OrdersController(IHttpClientFactory httpClientFactory, IHttpContextAccessor httpContextAccessor, ITouristRouteRepository touristRouteRepository, IMapper mapper)
 {
     _httpClientFactory      = httpClientFactory;
     _httpContextAccessor    = httpContextAccessor;
     _touristRouteRepository = touristRouteRepository;
     _mapper = mapper;
 }
예제 #5
0
 public TouristRoutesController(
     ITouristRouteRepository touristRouteRepository,
     IMapper mapper)
 {
     _touristRouteRepository = touristRouteRepository;
     _mapper = mapper;
 }
예제 #6
0
 public ShoppingCartController(IHttpContextAccessor httpContextAccessor,
                               ITouristRouteRepository touristRouteRepository, IMapper mapper)
 {
     _httpContextAccessor    = httpContextAccessor;
     _touristRouteRepository = touristRouteRepository;
     _mapper = mapper;
 }
예제 #7
0
 public AuthenticateController(IConfiguration configuration, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ITouristRouteRepository touristRouteRepository)
 {
     _configuration          = configuration;
     _userManager            = userManager;
     _signInManager          = signInManager;
     _touristRouteRepository = touristRouteRepository;
 }
예제 #8
0
 public OrdersController(
     IHttpContextAccessor httpContextAccessor,
     ITouristRouteRepository touristRouteRepository,
     IMapper mapper
     )
 {
     this.httpContextAccessor    = httpContextAccessor;
     this.touristRouteRepository = touristRouteRepository;
     this.mapper = mapper;
 }
 public IdentityRolesController(
     RoleManager <IdentityRole> roleManager,
     UserManager <ApplicationUser> userManager,
     ITouristRouteRepository touristRouteRepository,
     IMapper mapper
     )
 {
     _roleManager            = roleManager;
     _userManager            = userManager;
     _touristRouteRepository = touristRouteRepository;
     _mapper = mapper;
 }
 public TouristRoutesController(
     ITouristRouteRepository touristRouteRepository,
     IMapper mapper,
     //IUrlHelperFactory,IActionContextAccessor都是為了urlHelper
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IPropertyMappingService propertyMappingService
     )
 {
     //在構建函數的參數中 通過傳入旅遊倉庫的街口 來注入 旅遊倉庫的實例
     //最後在構建函數中 給私有倉庫賦值
     _touristRouteRepository = touristRouteRepository;
     _mapper    = mapper;
     _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _propertyMappingService = propertyMappingService;
 }
예제 #11
0
 public OrdersController(
     IHttpContextAccessor httpContextAccessor,
     IMapper mapper,
     ITouristRouteRepository touristRouteRepository,
     IHttpClientFactory httpClientFactory,
     IConfiguration config,
     ILogger logger
     )
 {
     this._httpContextAccessor = httpContextAccessor;
     this._mapper = mapper;
     this._touristRouteRepository = touristRouteRepository;
     this._httpClientFactory      = httpClientFactory;
     this._config = config;
     this._logger = logger;
 }
 public TouristRoutesController(
     ITouristRouteRepository touristRouteRepository,
     IMapper mapper,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IPropertyCheckerService propertyCheckerService
     )
 {
     _touristRouteRepository = touristRouteRepository ??
                               throw new ArgumentNullException(nameof(touristRouteRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _propertyCheckerService = propertyCheckerService ??
                               throw new ArgumentNullException(nameof(propertyCheckerService));
 }
 public TouristRoutePicturesController(ITouristRouteRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
예제 #14
0
 public ShoppingCartController(ITouristRouteRepository touristRouteRepository, IMapper mapper)
 {
     this.touristRouteRepository = touristRouteRepository;
     this.mapper = mapper;
 }
예제 #15
0
 public TouristRoutesController(ITouristRouteRepository touristRouteRepository)
 {
     _touristRouteRepository = touristRouteRepository;
 }
 public TouristRouteController(ITouristRouteRepository touristRouteRepository, IMapper mapper)
 {
     this.touristRouteRepository = touristRouteRepository ?? throw new ArgumentNullException(nameof(touristRouteRepository));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public AuthenticateController(ITouristRouteRepository touristRouteRepository, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager)
 {
     _touristRouteRepository = touristRouteRepository;
     _userManager            = userManager;
     _signInManager          = signInManager;
 }