예제 #1
0
        public ActionResult DeleteSpecial(int id)
        {
            ISpecialRepository repo = RepoFactory.CreateSpecialRepo();

            repo.Delete(id);
            return(RedirectToAction("Specials"));
        }
예제 #2
0
        public ActionResult Specials()
        {
            ISpecialRepository repo = RepoFactory.CreateSpecialRepo();
            var model = repo.GetAll().ToList();

            return(View(model));
        }
 public TemplatesSpecialEditorController(IAuthManager authManager, IPathManager pathManager, ISiteRepository siteRepository, ISpecialRepository specialRepository)
 {
     _authManager       = authManager;
     _pathManager       = pathManager;
     _siteRepository    = siteRepository;
     _specialRepository = specialRepository;
 }
예제 #4
0
 public CreateSpecialController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, ISpecialRepository specialRepository)
 {
     _authManager       = authManager;
     _createManager     = createManager;
     _siteRepository    = siteRepository;
     _specialRepository = specialRepository;
 }
예제 #5
0
 public AssetsService(IAssetsMainRepository assetsMainRep,
                      IAnimalRepository animalRep,
                      IBooksRepository bookRep,
                      ICarRepository carRep,
                      ILandRepository landRep,
                      IHouseRepository houseRep,
                      ICulturalrelicRepository culturalrelicRep,
                      IBuildingRepository buildingRep,
                      ISpecialRepository specialRep,
                      IGeneralRepository generalRep,
                      IAquairRepository aquairRep,
                      IClassCodeRepository classCodeRep,
                      IDiffResultRepository diffResultRep,
                      IDepartmentRepository deptRep,
                      IPlaceRepository placeRep,
                      ILedGerCachRepository ledGerCachRep,
                      IBorrowRepository borrowRep,
                      IBorrowDetailRepository borrowDetailRep,
                      IAquairDetailRepository aquairDetailRep,
                      IReturnDetailRepository returnDetailRep,
                      IRepairRepository repairRep,
                      IRepairDetailRepository repairDetailRep,
                      IScrapApllyRepository scrapApllyRep,
                      IScrapApplyDetailRepository srScrapApplyDetailRep,
                      IOrderListRepository orderListRep,
                      IInventoryRepository inventoryRep,
                      IInventoryDetailRepository inventoryDetailRep,
                      IServiceDetailRepository IServiceDetailRep
                      )
 {
     _assetsMainRep         = assetsMainRep;
     _animalRep             = animalRep;
     _bookRep               = bookRep;
     _carRep                = carRep;
     _houseRep              = houseRep;
     _landRep               = landRep;
     _culturalrelicRep      = culturalrelicRep;
     _buildingRep           = buildingRep;
     _specialRep            = specialRep;
     _generalRep            = generalRep;
     _aquairRep             = aquairRep;
     _classCodeRep          = classCodeRep;
     _diffResultRep         = diffResultRep;
     _deptRep               = deptRep;
     _placeRep              = placeRep;
     _ledGerCachRep         = ledGerCachRep;
     _borrowRep             = borrowRep;
     _borrowDetailRep       = borrowDetailRep;
     _aquairDetailRep       = aquairDetailRep;
     _returnDetailRep       = returnDetailRep;
     _repairRep             = repairRep;
     _repairDetailRep       = repairDetailRep;
     _scrapApllyRep         = scrapApllyRep;
     _srScrapApplyDetailRep = srScrapApplyDetailRep;
     _orderListRep          = orderListRep;
     _inventoryRep          = inventoryRep;
     _inventoryDetailRep    = inventoryDetailRep;
     _IServiceDetailRep     = IServiceDetailRep;
 }
예제 #6
0
 public CreateManager(IPathManager pathManager, IParseManager parseManager, ITaskManager taskManager, IChannelRepository channelRepository, IContentRepository contentRepository, ISiteRepository siteRepository, ISpecialRepository specialRepository, ITemplateRepository templateRepository)
 {
     _pathManager        = pathManager;
     _parseManager       = parseManager;
     _taskManager        = taskManager;
     _channelRepository  = channelRepository;
     _contentRepository  = contentRepository;
     _siteRepository     = siteRepository;
     _specialRepository  = specialRepository;
     _templateRepository = templateRepository;
 }
예제 #7
0
        public ActionResult Specials()
        {
            ISpecialRepository repo = RepoFactory.CreateSpecialRepo();

            AdminSpecialViewModel model = new AdminSpecialViewModel()
            {
                Specials = repo.GetAll().ToList()
            };

            return(View(model));
        }
 public ApplicationService(
     IEnumerable <IValidator <string> > inputValidators,
     IEnumerable <IValidator <TimerDto> > datesValidators,
     ISpecialRepository specialRepository,
     INormalRepository normalRepository
     )
 {
     _inputValidators   = inputValidators;
     _datesValidators   = datesValidators;
     _normalRepository  = normalRepository;
     _specialRepository = specialRepository;
 }
예제 #9
0
 public PathManager(ICacheManager <string> cacheManager, ISettingsManager settingsManager, IDatabaseManager databaseManager, ISpecialRepository specialRepository, ITemplateLogRepository templateLogRepository, ITemplateRepository templateRepository, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, ITableStyleRepository tableStyleRepository)
 {
     _cacheManager          = cacheManager;
     _settingsManager       = settingsManager;
     _databaseManager       = databaseManager;
     _specialRepository     = specialRepository;
     _templateLogRepository = templateLogRepository;
     _templateRepository    = templateRepository;
     _siteRepository        = siteRepository;
     _channelRepository     = channelRepository;
     _contentRepository     = contentRepository;
     _tableStyleRepository  = tableStyleRepository;
 }
예제 #10
0
 public ImportHistoryService(IImportHistoryRepository importHistoryRep, IAssetsMainRepository assetsMainRep, IAnimalRepository animalRepository, IBooksRepository booksRepository, ICarRepository carRepository, ICulturalrelicRepository culturalrelicRepository, IBuildingRepository buildingRepository, IGeneralRepository generalRepository, IHouseRepository houseRepository, ILandRepository landRepository, ISpecialRepository specialRepository)
 {
     _importHistoryRep        = importHistoryRep;
     _assetsMainRep           = assetsMainRep;
     _animalRepository        = animalRepository;
     _booksRepository         = booksRepository;
     _carRepository           = carRepository;
     _culturalrelicRepository = culturalrelicRepository;
     _buildingRepository      = buildingRepository;
     _generalRepository       = generalRepository;
     _houseRepository         = houseRepository;
     _landRepository          = landRepository;
     _specialRepository       = specialRepository;
 }
예제 #11
0
 public DatabaseManager(ISettingsManager settingsManager, IAccessTokenRepository accessTokenRepository, IAdministratorRepository administratorRepository, IAdministratorsInRolesRepository administratorsInRolesRepository, IChannelRepository channelRepository, IChannelGroupRepository channelGroupRepository, IConfigRepository configRepository, IContentCheckRepository contentCheckRepository, IContentGroupRepository contentGroupRepository, IContentRepository contentRepository, IContentTagRepository contentTagRepository, IDbCacheRepository dbCacheRepository, IErrorLogRepository errorLogRepository, ILogRepository logRepository, IMaterialArticleRepository materialArticleRepository, IMaterialAudioRepository materialAudioRepository, IMaterialFileRepository materialFileRepository, IMaterialGroupRepository materialGroupRepository, IMaterialImageRepository materialImageRepository, IMaterialMessageRepository materialMessageRepository, IMaterialMessageItemRepository materialMessageItemRepository, IMaterialVideoRepository materialVideoRepository, IPermissionsInRolesRepository permissionsInRolesRepository, IPluginConfigRepository pluginConfigRepository, IRelatedFieldItemRepository relatedFieldItemRepository, IRelatedFieldRepository relatedFieldRepository, IRoleRepository roleRepository, ISiteLogRepository siteLogRepository, ISitePermissionsRepository sitePermissionsRepository, ISiteRepository siteRepository, ISpecialRepository specialRepository, IStatRepository statRepository, ITableStyleRepository tableStyleRepository, ITemplateLogRepository templateLogRepository, ITemplateRepository templateRepository, ITranslateRepository translateRepository, IUserGroupRepository userGroupRepository, IUserMenuRepository userMenuRepository, IUserRepository userRepository, IWxAccountRepository wxAccountRepository, IWxChatRepository wxChatRepository, IWxMenuRepository wxMenuRepository, IWxReplyKeywordRepository wxReplyKeywordRepository, IWxReplyMessageRepository wxReplyMessageRepository, IWxReplyRuleRepository wxReplyRuleRepository, IWxUserRepository wxUserRepository)
 {
     _settingsManager                = settingsManager;
     AccessTokenRepository           = accessTokenRepository;
     AdministratorRepository         = administratorRepository;
     AdministratorsInRolesRepository = administratorsInRolesRepository;
     ChannelRepository               = channelRepository;
     ChannelGroupRepository          = channelGroupRepository;
     ConfigRepository                = configRepository;
     ContentCheckRepository          = contentCheckRepository;
     ContentGroupRepository          = contentGroupRepository;
     ContentRepository               = contentRepository;
     ContentTagRepository            = contentTagRepository;
     DbCacheRepository               = dbCacheRepository;
     ErrorLogRepository              = errorLogRepository;
     LogRepository                 = logRepository;
     MaterialArticleRepository     = materialArticleRepository;
     MaterialAudioRepository       = materialAudioRepository;
     MaterialFileRepository        = materialFileRepository;
     MaterialGroupRepository       = materialGroupRepository;
     MaterialImageRepository       = materialImageRepository;
     MaterialMessageRepository     = materialMessageRepository;
     MaterialMessageItemRepository = materialMessageItemRepository;
     MaterialVideoRepository       = materialVideoRepository;
     PermissionsInRolesRepository  = permissionsInRolesRepository;
     PluginConfigRepository        = pluginConfigRepository;
     RelatedFieldItemRepository    = relatedFieldItemRepository;
     RelatedFieldRepository        = relatedFieldRepository;
     RoleRepository                = roleRepository;
     SiteLogRepository             = siteLogRepository;
     SitePermissionsRepository     = sitePermissionsRepository;
     SiteRepository                = siteRepository;
     SpecialRepository             = specialRepository;
     StatRepository                = statRepository;
     TableStyleRepository          = tableStyleRepository;
     TemplateLogRepository         = templateLogRepository;
     TemplateRepository            = templateRepository;
     TranslateRepository           = translateRepository;
     UserGroupRepository           = userGroupRepository;
     UserMenuRepository            = userMenuRepository;
     UserRepository                = userRepository;
     WxAccountRepository           = wxAccountRepository;
     WxChatRepository              = wxChatRepository;
     WxMenuRepository              = wxMenuRepository;
     WxReplyKeywordRepository      = wxReplyKeywordRepository;
     WxReplyMessageRepository      = wxReplyMessageRepository;
     WxReplyRuleRepository         = wxReplyRuleRepository;
     WxUserRepository              = wxUserRepository;
 }
예제 #12
0
 public ActionResult Specials(AdminSpecialViewModel model)
 {
     if (ModelState.IsValid)
     {
         ISpecialRepository repo    = RepoFactory.CreateSpecialRepo();
         Special            special = new Special()
         {
             Description = model.Description,
             Title       = model.Title
         };
         repo.Create(special);
         return(RedirectToAction("Specials"));
     }
     return(View(model));
 }
예제 #13
0
        public ActionResult Index()
        {
            ISpecialRepository special_repo = RepoFactory.CreateSpecialRepo();
            IVehicleRepository vehicle_repo = RepoFactory.CreateVehicleRepo();


            var indexView = new HomeIndexViewModel()
            {
                specials         = special_repo.GetAll().ToList(),
                featuredVehicles = vehicle_repo.GetAllFeatures()
            };

            foreach (var v in indexView.featuredVehicles.features)
            {
                v.VehicleImagePath = ImageFinder(v.VehicleId);
            }
            return(View(indexView));
        }
예제 #14
0
        public SpecialController()
        {
            this.specialRepository = new SpecialRepository(new RestaurantContext());

            InitializeMapper();
        }
예제 #15
0
        public SpecialController(ISpecialRepository specialRepository)
        {
            this.specialRepository = specialRepository;

            InitializeMapper();
        }
예제 #16
0
 public SpecialService(ISpecialRepository specialRep)
 {
     _specialRep = specialRep;
 }
예제 #17
0
 public SpecialManager(ISpecialRepository specialRepository)
 {
     Repo = specialRepository;
 }
 public SpecialService(ISpecialRepository specialRepository)
 {
     _specialRepository = specialRepository;
 }