Beispiel #1
0
        public TourPlanService(LuxuryContext context)
        {
            _context            = context;
            _tourPlanRepository = new Repository <TourPlanList>(_context);
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <TourPlanList, TourPlanListDTO>();
            });

            _iMapper = config.CreateMapper();
        }
Beispiel #2
0
        public CategoriesSlidersService(LuxuryContext context)
        {
            _context = context;
            _categoriesSliderRepository = new Repository <CategoriesSliders>(_context);
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <CategoriesSliders, CategoriesSlidersDTO>();
            });

            _iMapper = config.CreateMapper();
        }
Beispiel #3
0
        public StaticPagesService(LuxuryContext context)
        {
            _context = context;
            _staticpagesRepository = new Repository <StaticPages>(_context);
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <StaticPages, StaticPagesDTO>();
            });

            _iMapper = config.CreateMapper();
        }
Beispiel #4
0
        public SiteSettingsService(LuxuryContext context)
        {
            _context = context;
            _sitesettingsRepository = new Repository <SiteSettings>(_context);
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <SiteSettings, SiteSettingsDTO>();
            });

            _iMapper = config.CreateMapper();
        }
        public TourGalleriesService(LuxuryContext context)
        {
            _context = context;
            _galleryPoolRepository   = new Repository <GalleryPool>(_context);
            _tourGalleriesRepository = new Repository <TourGalleries>(_context);
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <TourGalleries, TourGalleriesDTO>();
            });

            _iMapper = config.CreateMapper();
        }
        public GalleryKeywordService(LuxuryContext context)
        {
            _context = context;
            _galleryKeywordRepository = new Repository <GalleryKeyword>(_context);

            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <GalleryKeyword, GalleryKeywordDTO>();
            });

            _iMapper = config.CreateMapper();
        }
        public KeywordPoolService(LuxuryContext context)
        {
            _context = context;
            _keywordPoolRepository = new Repository <KeywordPool>(_context);

            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <KeywordPool, KeywordPoolDTO>();
            });

            _iMapper = config.CreateMapper();
        }
Beispiel #8
0
        public TourService(LuxuryContext context)
        {
            _context               = context;
            _tourRepository        = new Repository <Tour>(_context);
            _tourCategoriesService = new Repository <TourCategories>(_context);

            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <Tour, TourDTO>();
            });

            _iMapper = config.CreateMapper();
        }
Beispiel #9
0
 public Repository(LuxuryContext _dbContext)
 {
     this.dbContext = _dbContext;
     this.Table     = dbContext.Set <T>();
 }
Beispiel #10
0
 public UserService(LuxuryContext context)
 {
     _context        = context;
     _userRepository = new Repository <User>(_context);
 }