public PresentationsController(IPresentationRepository presentationRepository, ISpeakerRepository speakerRepository,
                                ILogger <PresentationsController> logger)
 {
     _presentationRepository = presentationRepository;
     _speakerRepository      = speakerRepository;
     _logger = logger;
 }
コード例 #2
0
        public DataModel.Response.FindAllItemReponse <DataModel.Model.PresentationModel> GetRelatedPresentation(DateTime date, int pageSize, int pageIndex)
        {
            try
            {
                IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository();

                var result = preRepository.FindAllRelated(date, pageSize, pageIndex);
                var _pre   = result.Item2.Select(n => MapperUtil.CreateMapper().Mapper.Map <Presentation, PresentationModel>(n)).ToList();
                return(new FindAllItemReponse <PresentationModel>
                {
                    Count = result.Item1,
                    Items = _pre,
                    ErrorCode = (int)ErrorCode.None,
                    Message = string.Empty
                });
            }
            catch (Exception ex)
            {
                return(new FindAllItemReponse <PresentationModel>
                {
                    ErrorCode = (int)ErrorCode.Error,
                    Message = ex.Message
                });
            }
        }
コード例 #3
0
        public PresentationService(IPresentationRepository presentationRepository, IMapper mapper)
        {
            DependencyHelper.ThrowIfNull(presentationRepository, mapper);

            _presentationRepository = presentationRepository;
            _mapper = mapper;
        }
コード例 #4
0
 public PresentationsController(PlanificatorDbContext context, IPresentationManager presentationManager, IPresentationViewModelMapper presentationViewModelMapper, ISpeakerRepository speakerRepository, IPresentationRepository presentationRepository)
 {
     //_context = context;
     _presentationManager         = presentationManager;
     _presentationViewModelMapper = presentationViewModelMapper;
     _speakerRepository           = speakerRepository;
     _presentationRepository      = presentationRepository;
 }
コード例 #5
0
 public CreatePresentationCommand(
     IPresentationRepository presentationRepository,
     IConversationRepository conversations
     )
 {
     this.presentationRepository = presentationRepository;
     this.conversations          = conversations;
 }
コード例 #6
0
 public PresentationManager(IPresentationRepository presentationRepository,
                            PresentationAddedQueue presentationAddedQueue,
                            PresentationScheduleAddedQueue presentationScheduleAddedQueue)
 {
     _presentationRepository         = presentationRepository;
     _presentationAddedQueue         = presentationAddedQueue;
     _presentationScheduleAddedQueue = presentationScheduleAddedQueue;
 }
コード例 #7
0
 public SyncService(IUserRepository userRepository,
                    IPresentationRepository presentationRepository,
                    IImageHolder imageHolder)
 {
     _userRepository         = userRepository;
     _presentationRepository = presentationRepository;
     _imageHolder            = imageHolder;
 }
コード例 #8
0
 public PresentationsController(
     IPresentationRepository repo,
     UserManager <Model.User> userManager,
     IEmbeddedRelationsSchema embeddedRelationsSchema)
 {
     this.repo                    = repo;
     this.userManager             = userManager;
     this.embeddedRelationsSchema = embeddedRelationsSchema;
 }
コード例 #9
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (contractorRepository != null)
                {
                    contractorRepository.Dispose();
                    contractorRepository = null;
                }

                if (contractRepository != null)
                {
                    contractRepository.Dispose();
                    contractRepository = null;
                }

                if (periodRepository != null)
                {
                    periodRepository.Dispose();
                    periodRepository = null;
                }

                if (requirementRepository != null)
                {
                    requirementRepository.Dispose();
                    requirementRepository = null;
                }

                if (presentationRepository != null)
                {
                    presentationRepository.Dispose();
                    presentationRepository = null;
                }

                if (presentationServices != null)
                {
                    presentationServices.Dispose();
                    presentationServices = null;
                }

                //documentFileService.Dispose();
                if (workflowMessageService != null)
                {
                    workflowMessageService.Dispose();
                    workflowMessageService = null;
                }

                if (entityTypeRepository != null)
                {
                    entityTypeRepository.Dispose();
                    entityTypeRepository = null;
                }
            }
            base.Dispose(disposing);
        }
コード例 #10
0
 public CachedProductCatalogueService(ICacheStorage cachStorage,
                                      IProductCatalogueService realProductCatalogueService,
                                      IProductTitleRepository productTitleRepository,
                                      IProductRepository productRepository,
                                      IPresentationRepository presentationRepository)
 {
     _cachStorage = cachStorage;
     _realProductCatalogueService = realProductCatalogueService;
     _productTitleRepository      = productTitleRepository;
     _productRepository           = productRepository;
     _presentationRepository      = presentationRepository;
 }
コード例 #11
0
 public HomeController(ILogger <HomeController> logger,
                       ILectureService lectureService,
                       IPresentationRepository presentationRepository,
                       IQuestionRepository questionRepository,
                       IUserRepository userRepository)
 {
     _logger                 = logger;
     _lectureService         = lectureService;
     _presentationRepository = presentationRepository;
     _questionRepository     = questionRepository;
     _userRepository         = userRepository;
 }
 public CachedProductCatalogueService(ICacheStorage cachStorage,
                                      IProductCatalogueService realProductCatalogueService,
                                      IProductTitleRepository productTitleRepository,
                                      IProductRepository productRepository,
                                      IPresentationRepository presentationRepository)
 {
     _cachStorage = cachStorage;
     _realProductCatalogueService = realProductCatalogueService;
     _productTitleRepository = productTitleRepository;
     _productRepository = productRepository;
     _presentationRepository = presentationRepository;
 }
コード例 #13
0
 public ServersController(
     IServerRepository serversRepo,
     ISimulationRepository simulationsRepo,
     IPresentationRepository presentationsRepo,
     UserManager <Model.User> userManager,
     IEmbeddedRelationsSchema embeddedRelationsSchema)
 {
     this.serversRepo             = serversRepo;
     this.simulationsRepo         = simulationsRepo;
     this.presentationsRepo       = presentationsRepo;
     this.userManager             = userManager;
     this.embeddedRelationsSchema = embeddedRelationsSchema;
 }
コード例 #14
0
 public PresentationController(ISongRepository songRepository,
                               IConvertPresentation pptxToZipConverter, IMerge powerPointMerger,
                               IFileAndFolderPathsCreator fileAndFolderPath, IPresentationRepository presentationRepository,
                               IGetValue valueRetrieval, IGoogleSlides googleSlides)
 {
     _powerPointMerger       = powerPointMerger;
     _songRepository         = songRepository;
     _pptxToZipConverter     = pptxToZipConverter;
     _fileAndFolderPath      = fileAndFolderPath;
     _presentationRepository = presentationRepository;
     _valueRetrieval         = valueRetrieval;
     _googleSlides           = googleSlides;
 }
コード例 #15
0
 public CustomerRequirementsController(IContractorRepository contractorRepo,
                                       IContractRepository contractRepo,
                                       IPeriodRepository periodRepo,
                                       IRequirementRepository requirementRepo,
                                       IPresentationRepository presentationRepo,
                                       IPresentationServices presentationServ,
                                       IDocumentFileService documentFileServ,
                                       IWorkflowMessageService workflowMessageServ)
 {
     contractorRepository   = contractorRepo;
     contractRepository     = contractRepo;
     periodRepository       = periodRepo;
     requirementRepository  = requirementRepo;
     presentationRepository = presentationRepo;
     presentationServices   = presentationServ;
     documentFileService    = documentFileServ;
     workflowMessageService = workflowMessageServ;
 }
コード例 #16
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (presentationRepository != null)
                {
                    presentationRepository.Dispose();
                    presentationRepository = null;
                }

                //documentFileService.Dispose();

                if (requirementRepository != null)
                {
                    requirementRepository.Dispose();
                    requirementRepository = null;
                }
            }
            base.Dispose(disposing);
        }
コード例 #17
0
 public DataModel.Response.BaseResponse DeletePresentation(string id)
 {
     try
     {
         IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository();
         preRepository.Delete(id);
         return(new BaseResponse
         {
             ErrorCode = (int)ErrorCode.None,
             Message = Resources.Resource.msg_delete_success
         });
     }
     catch (Exception ex)
     {
         return(new BaseResponse
         {
             ErrorCode = (int)ErrorCode.Error,
             Message = ex.Message
         });
     }
 }
コード例 #18
0
 public RequirementsController(IRequirementRepository requirementRepo,
                               IPresentationRepository presentationRepo,
                               IDocumentFileService documentFileServ,
                               ICustomerAuditorRespository customerAuditorRespo,
                               IContractorRepository contractorRepo,
                               IPresentationServices presentationServ,
                               IWorkflowMessageService workflowMessageServ,
                               IDocumentationBusinessTypeRepository documentationBusinessTypeRepo,
                               IPeriodRepository periodRepo,
                               IEntityTypeRepository entityTypeRepo)
 {
     requirementRepository               = requirementRepo;
     presentationRepository              = presentationRepo;
     documentFileService                 = documentFileServ;
     customerAuditorRespository          = customerAuditorRespo;
     contractorRepository                = contractorRepo;
     presentationServices                = presentationServ;
     workflowMessageService              = workflowMessageServ;
     documentationBusinessTypeRepository = documentationBusinessTypeRepo;
     periodRepository     = periodRepo;
     entityTypeRepository = entityTypeRepo;
 }
コード例 #19
0
 public DataModel.Response.BaseResponse UpdatePresentation(DataModel.Model.PresentationModel presentation)
 {
     try
     {
         IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository();
         var _pre = MapperUtil.CreateMapper().Mapper.Map <PresentationModel, Presentation>(presentation);
         preRepository.Update(_pre);
         return(new BaseResponse
         {
             ErrorCode = (int)ErrorCode.None,
             Message = Resources.Resource.msg_update_success
         });
     }
     catch (Exception ex)
     {
         return(new BaseResponse
         {
             ErrorCode = (int)ErrorCode.Error,
             Message = ex.Message
         });
     }
 }
コード例 #20
0
 public DataModel.Response.FindAllItemReponse <DataModel.Model.PresentationModel> GetPresentation()
 {
     try
     {
         IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository();
         IList <Presentation>    pres          = preRepository.FindAll();
         var _pres = pres.Select(n => MapperUtil.CreateMapper().Mapper.Map <Presentation, PresentationModel>(n)).ToList();
         return(new FindAllItemReponse <PresentationModel>
         {
             Items = _pres,
             ErrorCode = (int)ErrorCode.None,
             Message = string.Empty
         });
     }
     catch (Exception ex)
     {
         return(new FindAllItemReponse <PresentationModel>
         {
             ErrorCode = (int)ErrorCode.Error,
             Message = ex.Message
         });
     }
 }
コード例 #21
0
 public DataModel.Response.InsertResponse CreatePresentation(DataModel.Model.PresentationModel presentation)
 {
     try
     {
         IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository();
         Presentation            _pre          = MapperUtil.CreateMapper().Mapper.Map <PresentationModel, Presentation>(presentation);
         object id = preRepository.Insert(_pre);
         return(new InsertResponse
         {
             InsertID = id.ToString(),
             ErrorCode = (int)ErrorCode.None,
             Message = Resources.Resource.msg_create_success
         });
     }
     catch (Exception ex)
     {
         return(new InsertResponse
         {
             ErrorCode = (int)ErrorCode.Error,
             Message = ex.Message
         });
     }
 }
コード例 #22
0
 public DataModel.Response.FindItemReponse <DataModel.Model.PresentationModel> FindPresentationByActionURL(string actionURL)
 {
     try
     {
         IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository();
         Presentation            pre           = preRepository.FindByActionURL(actionURL);
         var _pre = MapperUtil.CreateMapper().Mapper.Map <Presentation, PresentationModel>(pre);
         return(new FindItemReponse <PresentationModel>
         {
             Item = _pre,
             ErrorCode = (int)ErrorCode.None,
             Message = string.Empty
         });
     }
     catch (Exception ex)
     {
         return(new FindItemReponse <PresentationModel>
         {
             ErrorCode = (int)ErrorCode.Error,
             Message = ex.Message
         });
     }
 }
コード例 #23
0
 public PresentationsController(IPresentationRepository repo, IEmbeddedRelationsSchema embeddedRelationsSchema)
 {
     this.repo = repo;
     this.embeddedRelationsSchema = embeddedRelationsSchema;
 }
コード例 #24
0
 public PresentationController()
 {
     this.repository = new PresentationRepository();
     this.tagRepository = new TagRepository();
     this.slideRepository = new SlideRepository();
 }
コード例 #25
0
 public PresentationsController(IPresentationRepository presentationRepository)
 {
     _presentationRepository = presentationRepository;
 }
コード例 #26
0
 public PresentationsController(IPresentationRepository presentationRepository, ISpeakerRepository speakerRepository, ILogger <PresentationsController> logger)
 {
     _presentationRepository = presentationRepository;
     _speakerRepository      = speakerRepository;
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #27
0
 public SearchController()
 {
     repository = new PresentationRepository();
 }
コード例 #28
0
 public ProductCatalogueService(IPresentationRepository presentationRepository)
 {
     _presentationRepository = presentationRepository;
 }
コード例 #29
0
 public ProductCatalogueService(IPresentationRepository presentationRepository)
 {
     _presentationRepository = presentationRepository;
 }
コード例 #30
0
 public PresentationController(IPresentationRepository repo)
 {
     this.repo = repo;
 }
コード例 #31
0
 public RetrievePresentationToViewQuery(IPresentationRepository presentationRepository, ICurrentSchema currentSchema, IRetrieveDocumentUrlQuery retrieveDocumentUrlQuery)
 {
     this.presentationRepository   = presentationRepository;
     this.currentSchema            = currentSchema;
     this.retrieveDocumentUrlQuery = retrieveDocumentUrlQuery;
 }
コード例 #32
0
 public PresentationsController(IPresentationRepository presentationRepo, IDocumentFileService documentFileServ, IRequirementRepository requirementRepo)
 {
     presentationRepository = presentationRepo;
     documentFileService    = documentFileServ;
     requirementRepository  = requirementRepo;
 }
コード例 #33
0
 public DisplayGenerator(ISimulator simulator, IPresentationRepository presentationRepository)
 {
     _simulator = simulator;
     _presentationRepository = presentationRepository;
 }
コード例 #34
0
 public PresentationCurrentPageQuery(IPresentationRepository presentationRepository)
 {
     this.presentationRepository = presentationRepository;
 }