public TourPlanService(LuxuryContext context) { _context = context; _tourPlanRepository = new Repository <TourPlanList>(_context); var config = new MapperConfiguration(cfg => { cfg.CreateMap <TourPlanList, TourPlanListDTO>(); }); _iMapper = config.CreateMapper(); }
public CategoriesSlidersService(LuxuryContext context) { _context = context; _categoriesSliderRepository = new Repository <CategoriesSliders>(_context); var config = new MapperConfiguration(cfg => { cfg.CreateMap <CategoriesSliders, CategoriesSlidersDTO>(); }); _iMapper = config.CreateMapper(); }
public StaticPagesService(LuxuryContext context) { _context = context; _staticpagesRepository = new Repository <StaticPages>(_context); var config = new MapperConfiguration(cfg => { cfg.CreateMap <StaticPages, StaticPagesDTO>(); }); _iMapper = config.CreateMapper(); }
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(); }
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(); }
public Repository(LuxuryContext _dbContext) { this.dbContext = _dbContext; this.Table = dbContext.Set <T>(); }
public UserService(LuxuryContext context) { _context = context; _userRepository = new Repository <User>(_context); }