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; }
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(); }
public TouristRoutPicturesController(IMapper mapper, ITouristRoutRepository fakerepository) { this._mapper = mapper; this._fakerepository = fakerepository; }