Esempio n. 1
0
 public GalleryImageServiceImpl(GalleryImageRepository galleryRepo, TransactionManager transactionManager, GalleryImageMaker galleryMaker, IHostingEnvironment hostingEnvironment)
 {
     _galleryRepo        = galleryRepo;
     _transactionManager = transactionManager;
     _galleryMaker       = galleryMaker;
     _hostingEnvironment = hostingEnvironment;
 }
 public GalleryController(GalleryRepository galleryRepo, PaginatedMetaService paginatedMetaService, GalleryImageRepository galleryImageRepo, IMapper mapper)
 {
     _galleryRepo          = galleryRepo;
     _galleryImageRepo     = galleryImageRepo;
     _paginatedMetaService = paginatedMetaService;
     _mapper = mapper;
 }
 public GalleryImageController(FileHelper fileHelper, IMapper mapper, GalleryImageService galleryImageService, GalleryImageRepository galleryImageRepo, PaginatedMetaService paginatedMetaService, GalleryRepository galleryRepository)
 {
     _galleryImageService  = galleryImageService;
     _galleryImageRepo     = galleryImageRepo;
     _paginatedMetaService = paginatedMetaService;
     _mapper            = mapper;
     _fileHelper        = fileHelper;
     _galleryRepository = galleryRepository;
 }
Esempio n. 4
0
        public UnitOfWork(ApplicationDbContext context)
        {
            _context = context;

            Notices       = new NoticeRepository(context);
            Products      = new ProductRepository(context);
            GalleryImages = new GalleryImageRepository(context);
            Categories    = new CategoryRepository(context);
            Comments      = new CommentRepository(context);
        }
 public HomeController(PartnersRepository partnersRepository, MembersRepository membersRepository, GalleryImageRepository galleryRepo, MenuRepository menuRepo, MenuCategoryRepository menuCategoryRepo, NoticeRepository noticeRepo, PageRepository pageRepo, CoursesRepository productRepo, IMapper mapper, SetupRepository setupRepo, EmailSenderService emailSenderService, TestimonialRepository testimonialRepo, BlogRepository blogRepo, EventRepository eventRepo, VideoRepository videoRepository, NewsRepository newsRepository, DoctorsRepository doctorsRepository, ServicesRepository servicesRepository, AppointmentService appointmentService, AppointmentRepository appointmentRepository, AppointmentMaker appointmentMaker)
 {
     _galleryRepo           = galleryRepo;
     _newsRepository        = newsRepository;
     _noticeRepo            = noticeRepo;
     _pageRepo              = pageRepo;
     _productRepo           = productRepo;
     _mapper                = mapper;
     _setupRepo             = setupRepo;
     _testimonialRepo       = testimonialRepo;
     _emailSenderService    = emailSenderService;
     _blogRepo              = blogRepo;
     _eventRepo             = eventRepo;
     _videoRepository       = videoRepository;
     _doctorsRepository     = doctorsRepository;
     _servicesRepository    = servicesRepository;
     _appointmentService    = appointmentService;
     _appointmentRepository = appointmentRepository;
     _appointmentMaker      = appointmentMaker;
     _menuRepo              = menuRepo;
     _menuCategoryRepo      = menuCategoryRepo;
     _membersRepository     = membersRepository;
     _partnersRepository    = partnersRepository;
 }
Esempio n. 6
0
 public tbl_GalleryImage SaveGalleryImage(int galleryID, int imageID, int galleryImageID)
 {
     return(GalleryImageRepository.SaveGalleryImage(galleryID, imageID, galleryImageID));
 }
Esempio n. 7
0
 public tbl_GalleryImage GetGalleryImageByID(int imageID)
 {
     return(GalleryImageRepository.GetByID(imageID));
 }
Esempio n. 8
0
 public List <tbl_GalleryImage> GetAllGalleryImages(int galleryID)
 {
     return(GalleryImageRepository.GetAll().Where(gi => gi.GI_GalleryID == galleryID).ToList());
 }
Esempio n. 9
0
 public List <tbl_GalleryImage> GetAllGalleryImages()
 {
     return(GalleryImageRepository.GetAll().ToList());
 }