public PresentationsController(IPresentationRepository presentationRepository, ISpeakerRepository speakerRepository, ILogger <PresentationsController> logger) { _presentationRepository = presentationRepository; _speakerRepository = speakerRepository; _logger = logger; }
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 }); } }
public PresentationService(IPresentationRepository presentationRepository, IMapper mapper) { DependencyHelper.ThrowIfNull(presentationRepository, mapper); _presentationRepository = presentationRepository; _mapper = mapper; }
public PresentationsController(PlanificatorDbContext context, IPresentationManager presentationManager, IPresentationViewModelMapper presentationViewModelMapper, ISpeakerRepository speakerRepository, IPresentationRepository presentationRepository) { //_context = context; _presentationManager = presentationManager; _presentationViewModelMapper = presentationViewModelMapper; _speakerRepository = speakerRepository; _presentationRepository = presentationRepository; }
public CreatePresentationCommand( IPresentationRepository presentationRepository, IConversationRepository conversations ) { this.presentationRepository = presentationRepository; this.conversations = conversations; }
public PresentationManager(IPresentationRepository presentationRepository, PresentationAddedQueue presentationAddedQueue, PresentationScheduleAddedQueue presentationScheduleAddedQueue) { _presentationRepository = presentationRepository; _presentationAddedQueue = presentationAddedQueue; _presentationScheduleAddedQueue = presentationScheduleAddedQueue; }
public SyncService(IUserRepository userRepository, IPresentationRepository presentationRepository, IImageHolder imageHolder) { _userRepository = userRepository; _presentationRepository = presentationRepository; _imageHolder = imageHolder; }
public PresentationsController( IPresentationRepository repo, UserManager <Model.User> userManager, IEmbeddedRelationsSchema embeddedRelationsSchema) { this.repo = repo; this.userManager = userManager; this.embeddedRelationsSchema = embeddedRelationsSchema; }
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); }
public CachedProductCatalogueService(ICacheStorage cachStorage, IProductCatalogueService realProductCatalogueService, IProductTitleRepository productTitleRepository, IProductRepository productRepository, IPresentationRepository presentationRepository) { _cachStorage = cachStorage; _realProductCatalogueService = realProductCatalogueService; _productTitleRepository = productTitleRepository; _productRepository = productRepository; _presentationRepository = presentationRepository; }
public HomeController(ILogger <HomeController> logger, ILectureService lectureService, IPresentationRepository presentationRepository, IQuestionRepository questionRepository, IUserRepository userRepository) { _logger = logger; _lectureService = lectureService; _presentationRepository = presentationRepository; _questionRepository = questionRepository; _userRepository = userRepository; }
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; }
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; }
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; }
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); }
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 }); } }
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; }
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 }); } }
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 }); } }
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 }); } }
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 }); } }
public PresentationsController(IPresentationRepository repo, IEmbeddedRelationsSchema embeddedRelationsSchema) { this.repo = repo; this.embeddedRelationsSchema = embeddedRelationsSchema; }
public PresentationController() { this.repository = new PresentationRepository(); this.tagRepository = new TagRepository(); this.slideRepository = new SlideRepository(); }
public PresentationsController(IPresentationRepository presentationRepository) { _presentationRepository = presentationRepository; }
public PresentationsController(IPresentationRepository presentationRepository, ISpeakerRepository speakerRepository, ILogger <PresentationsController> logger) { _presentationRepository = presentationRepository; _speakerRepository = speakerRepository; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SearchController() { repository = new PresentationRepository(); }
public ProductCatalogueService(IPresentationRepository presentationRepository) { _presentationRepository = presentationRepository; }
public PresentationController(IPresentationRepository repo) { this.repo = repo; }
public RetrievePresentationToViewQuery(IPresentationRepository presentationRepository, ICurrentSchema currentSchema, IRetrieveDocumentUrlQuery retrieveDocumentUrlQuery) { this.presentationRepository = presentationRepository; this.currentSchema = currentSchema; this.retrieveDocumentUrlQuery = retrieveDocumentUrlQuery; }
public PresentationsController(IPresentationRepository presentationRepo, IDocumentFileService documentFileServ, IRequirementRepository requirementRepo) { presentationRepository = presentationRepo; documentFileService = documentFileServ; requirementRepository = requirementRepo; }
public DisplayGenerator(ISimulator simulator, IPresentationRepository presentationRepository) { _simulator = simulator; _presentationRepository = presentationRepository; }
public PresentationCurrentPageQuery(IPresentationRepository presentationRepository) { this.presentationRepository = presentationRepository; }