public PostController( IPostRepository postRepository, IUnitOfWork unitOfWork, ILoggerFactory loggerFactory, IConfiguration configuration, IMapper mapper, IHttpContextAccessor accessor, LinkGenerator generator, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer, IConnectionMultiplexer redis ) { this.postRepository = postRepository; this.unitOfWork = unitOfWork; this.configuration = configuration; this.mapper = mapper; this.accessor = accessor; this.generator = generator; this.typeHelperService = typeHelperService; this.propertyMappingContainer = propertyMappingContainer; this.redis = redis; this.db = redis.GetDatabase(); this.logger = loggerFactory.CreateLogger("Blog Api Controller.PostController"); }
/// <summary> /// Episodes Controller. /// </summary> /// <param name="repository"></param> /// <param name="logger"></param> /// <param name="propertyMappingService"></param> /// <param name="typeHelperService"></param> public EpisodesController(IStarWarsRepository repository, ILogger <EpisodesController> logger, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) : base(repository, propertyMappingService, typeHelperService) => this.logger = logger;
public AuthorsController(ILibraryRepository repo, IUrlHelper urlHelper, IPropertyMappingService propertyService, ITypeHelperService typeHelper) { _repo = repo; _urlHelper = urlHelper; _propertyService = propertyService; _typeHelper = typeHelper; }
/// <summary> /// CharacterCollections Controller. /// </summary> /// <param name="repository"></param> /// <param name="logger"></param> /// <param name="propertyMappingService"></param> /// <param name="typeHelperService"></param> public CharacterCollectionsController(IStarWarsRepository repository, ILogger <CharacterCollectionsController> logger, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) : base(repository, propertyMappingService, typeHelperService) => this.logger = logger;
/// <inheritdoc /> public ProductGroupsController(IUnitOfWork unitOfWork, IMapper mapper, ITypeHelperService typeHelperService) { _unitOfWork = unitOfWork; _typeHelperService = typeHelperService; _productGroupRepository = _unitOfWork.ProductGroupRepository; Mapper = mapper; }
public AuthorsController(ILibraryRepository libraryRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { _libraryRepository = libraryRepository; _urlHelper = urlHelper; _propertyMappingService = propertyMappingService; _typeHelperService = typeHelperService; }
public JobController(IJobRepository jobRepository, ITypeHelperService typeHelperService, IControllerHelper controllerHelper) { _jobRepository = jobRepository; _typeHelperService = typeHelperService; _controllerHelper = controllerHelper; }
public AuthorsController(ILibraryRepository libraryRepository, IUrlHelper urlHelper, ITypeHelperService typeHelperService) { _urlHelper = urlHelper; _libraryRepository = libraryRepository; _typeHelperService = typeHelperService; }
public ShowtimeController(IShowtimeRepository showtimeRepository, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService, IUrlHelper urlHelper, ILogger <ShowtimeController> logger) { _logger = logger; _showtimeRepository = showtimeRepository; _typeHelperService = typeHelperService; _urlHelper = urlHelper; _propertyMappingService = propertyMappingService; _propertyMappingService.AddPropertyMapping <ShowtimeDto, Showtime>(new Dictionary <string, PropertyMappingValue>(StringComparer.OrdinalIgnoreCase) { { "Id", new PropertyMappingValue(new List <string>() { "Id" }) }, { "MovieId", new PropertyMappingValue(new List <string>() { "MovieId" }) }, { "HallId", new PropertyMappingValue(new List <string>() { "HallId" }) }, { "TimeOfPlaying", new PropertyMappingValue(new List <string>() { "TimeOfPlaying" }) }, { "ThreeDee", new PropertyMappingValue(new List <string>() { "ThreeDee" }) } }); }
public SoruStore( SoruDepoDbContext soruDb, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { this.store = new StoreWriteBase <SoruDepoDbContext, Soru>(soruDb); this.propertyMappingService = propertyMappingService; this.typeHelperService = typeHelperService; propertyMappingService.AddMap <SoruListeDto, Soru>(SoruPropertyMap.Values); store.Sorgu = store.Sorgu .Include(soru => soru.SoruHedefleri).ThenInclude(shb => shb.Hedefi) .Include(soru => soru.SoruTipi) .Include(soru => soru.SoruZorluk) .Include(soru => soru.BilisselDuzeyi) .Include(soru => soru.TekDogruluSecenekleri) .Include(soru => soru.SoruKoku); store.Kayit = store.Kayit .Include(soru => soru.SoruHedefleri).ThenInclude(shb => shb.Hedefi) .Include(soru => soru.SoruTipi) .Include(soru => soru.SoruZorluk) .Include(soru => soru.BilisselDuzeyi) .Include(soru => soru.TekDogruluSecenekleri) .Include(soru => soru.SoruKoku); }
public AuthorsController(ILibraryRepository libraryRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { this.libraryRepository = libraryRepository; this.urlHelper = urlHelper; this.propertyMappingService = propertyMappingService; this.typeHelperService = typeHelperService; }
public ConditionsController(IMediator mediator, ITypeHelperService typeHelperService, IMapper mapper, ILinkGeneratorService linkGeneratorService, IRepositoryInt <Condition> conditionRepository, IRepositoryInt <ConditionLabTest> conditionLabTestRepository, IRepositoryInt <ConditionMedication> conditionMedicationRepository, IRepositoryInt <ConditionMedDra> conditionMeddraRepository, IRepositoryInt <LabTest> labTestRepository, IRepositoryInt <Concept> conceptRepository, IRepositoryInt <Product> productRepository, IRepositoryInt <TerminologyMedDra> terminologyMeddraRepository, IUnitOfWorkInt unitOfWork, ILogger <ConditionsController> logger) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _typeHelperService = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService)); _conditionRepository = conditionRepository ?? throw new ArgumentNullException(nameof(conditionRepository)); _conditionLabTestRepository = conditionLabTestRepository ?? throw new ArgumentNullException(nameof(conditionLabTestRepository)); _conditionMedicationRepository = conditionMedicationRepository ?? throw new ArgumentNullException(nameof(conditionMedicationRepository)); _conditionMeddraRepository = conditionMeddraRepository ?? throw new ArgumentNullException(nameof(conditionMeddraRepository)); _labTestRepository = labTestRepository ?? throw new ArgumentNullException(nameof(labTestRepository)); _conceptRepository = conceptRepository ?? throw new ArgumentNullException(nameof(conceptRepository)); _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _terminologyMeddraRepository = terminologyMeddraRepository ?? throw new ArgumentNullException(nameof(terminologyMeddraRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public AuthorsController(ILibraryRepository libraryRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { LibraryRepository = libraryRepository ?? throw new ArgumentNullException(nameof(libraryRepository)); UrlHelper = urlHelper ?? throw new ArgumentNullException(nameof(urlHelper)); PropertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService)); TypeHelperService = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService)); }
/// <summary> /// Base constructor. /// </summary> /// <param name="repository"></param> /// <param name="propertyMappingService"></param> /// <param name="typeHelperService"></param> public StarWarsController(IStarWarsRepository repository, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { this.repository = repository; this.propertyMappingService = propertyMappingService; this.typeHelperService = typeHelperService; }
public AuthorsController(ILibraryRepository libraryRepository, ILogger <AuthorsController> logger, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { _libraryRepository = libraryRepository; _logger = logger; _propertyMappingService = propertyMappingService; _typeHelperService = typeHelperService; }
public StockController(ISupermarketRepository supermarketRepository, IStockPropertyMappingService stockMappingService, ITypeHelperService typeHelperService, IUrlHelper urlHelper) { _supermarketRepository = supermarketRepository; _stockMappingService = stockMappingService; _typeHelperService = typeHelperService; _urlHelper = urlHelper; }
public ReviewController(IReviewRepository reviewRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { _reviewRepository = reviewRepository; _urlHelper = urlHelper; _propertyMappingService = propertyMappingService; _typeHelperService = typeHelperService; }
/// <inheritdoc /> public UsersController(IUnitOfWork unitOfWork, IMapper mapper, ITypeHelperService typeHelperService) { _unitOfWork = unitOfWork; _typeHelperService = typeHelperService; // inject and set the mapper from the BaseController Mapper = mapper; }
/// <summary> /// Constructor of VideosConroller /// </summary> /// <param name="videoRepository">videoRepository</param> /// <param name="participantRepository">participantRepository</param> /// <param name="urlHelper">UrlHelper</param> /// <param name="propertyMappingService">propertyMappingService which helps to map the sort order of fields of model to the database field</param> /// <param name="typeHelperService">typehelper service which helps to know whether a property exists ina type</param> public VideosController(VideoRepository videoRepository, ParticipantRepository participantRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService) { this.videoRepository = videoRepository; this.participantRepository = participantRepository; this.propertyMappingService = propertyMappingService; this.typeHelperService = typeHelperService; this.urlHelper = urlHelper; }
public CohortGroupsController(IMediator mediator, ITypeHelperService typeHelperService, ILogger <CohortGroupsController> logger) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _typeHelperService = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ProductsController(ISupermarketRepository supermarketRepository, IProductPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService, IUrlHelper urlHelper) { _supermarketRepository = supermarketRepository; _propertyMappingService = propertyMappingService; _typeHelperService = typeHelperService; _urlHelper = urlHelper; }
public ReviewsController(IReviewData reviewData, IUrlHelper urlHelper, IReviewerData reviewerData, ITypeHelperService typeHelperService) { _reviewData = reviewData; _urlHelper = urlHelper; _reviewerData = reviewerData; _typeHelperService = typeHelperService; }
public AlbumsController(IAlbumRepository albumsReviewRepository, IPropertyMappingService propertyMappingService, IControllerHelper controllerHelper, IHateoasHelper hateoasHelper, ITypeHelperService typeHelperService) { _albumRepository = albumsReviewRepository; _controllerHelper = controllerHelper; _hateoasHelper = hateoasHelper; _typeHelperService = typeHelperService; }
public AuthorsController(IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService, ILibraryRepository libraryRepository) { _propertyMappingService = propertyMappingService; _typeHelperService = typeHelperService; _libraryRepository = libraryRepository; }
public EmployeeJobController(IJobRepository jobRepository, IEmployeeRepository employeeRepository, ITypeHelperService typeHelperService, IControllerHelper controllerHelper) { _jobRepository = jobRepository; _employeeRepository = employeeRepository; _typeHelperService = typeHelperService; _controllerHelper = controllerHelper; }
public GroupsController( IConfiguration configuration, ITypeHelperService typeHelperService, IGroupService groupService ) : base(configuration, typeHelperService) { _groupService = groupService; }
public UsersController(IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingService propertyMappingService, IUsersControllerDependencyBlock blockUser) { _urlHelper = urlHelper; _typeHelperService = typeHelperService; _propertyMappingService = propertyMappingService; _inquiryAllUsersProcessor = blockUser.InquiryAllUsersProcessor; }
/// <summary> /// Consructor of User Conroller /// </summary> /// <param name="userRepository">UserRepository</param> /// <param name="typeHelperService">typeHleper service to determine of a property exists on a type</param> /// <param name="urlHelper">urlhelper to help create links</param> /// <param name="propertyMappingService">propertymapping service to map the sort property to database property of the corresponding object</param> public UserController(UserRepository userRepository, ITypeHelperService typeHelperService, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService)//, UserManager<IdentityUser> userManager) { this.userRepository = userRepository; this.typeHelperService = typeHelperService; this.propertyMappingService = propertyMappingService; this.urlHelper = urlHelper; // this.userManager = userManager; }
public BaseController( IConfiguration configuration, ITypeHelperService typeHelperService ) { _configuration = configuration; _typeHelperService = typeHelperService; }
public AuthorsController(ILiberaryRepository repository, IUrlHelper urlHelper, ITypeHelperService typeHelperService) { this.repository = repository; this.urlHelper = urlHelper; this.typeHelperService = typeHelperService; }