Пример #1
0
 public UserController(IConfiguration configration, UserManager <MyApplicationIdentity> userManager, SignInManager <MyApplicationIdentity> signInManager, ITouristRoutRepository routeRepository)
 {
     this.configration    = configration;
     this.userManager     = userManager;
     this.signInManager   = signInManager;
     this.routeRepository = routeRepository;
 }
 public ShoppingCartsController(
     IHttpContextAccessor contextAccessor,
     ITouristRoutRepository routeRepository,
     IMapper mapper)
 {
     this.httpContextAccessor = contextAccessor;
     this.repository          = routeRepository;
     this.mapper = mapper;
 }
 public UserOrdersController(
     ITouristRoutRepository routeRepository,
     IHttpContextAccessor httpContextAccessor,
     IMapper mapper
     )
 {
     this.routeRepository     = routeRepository;
     this.httpContextAccessor = httpContextAccessor;
     this.mapper = mapper;
 }
Пример #4
0
        public TouristRoutsController(
            ITouristRoutRepository touristRout,
            IMapper mapper,
            IUrlHelperFactory urlHelperFactory,
            IActionContextAccessor actionContextAccessor,
            IPropertyMappingServer propertyMappingServer,
            IConfiguration configuration
            )
        {
            this.TouristRoutRepo = touristRout;
            this._autoMapper     = mapper;
            //URLhellper 注入
            this.urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);

            this.propertyMappingServer = propertyMappingServer;
            this.localConfigMedia      = configuration["CostomApplicationType:hateoas"].Trim().ToLowerInvariant();
        }
Пример #5
0
 public TouristRoutPicturesController(IMapper mapper, ITouristRoutRepository fakerepository)
 {
     this._mapper         = mapper;
     this._fakerepository = fakerepository;
 }