Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductController"/> class.
 /// </summary>
 /// <param name="hubContext"></param>
 /// <param name="quoteGetItemsCommand"></param>
 /// <param name="syncCommand"></param>
 public FunzaController(IHubContext <GlobalHub, IGlobalHub> hubContext, IFunzaQuoteGetItemsCommand quoteGetItemsCommand, IFunzaSyncCommand syncCommand, IInternalSyncClient funzaSync) : base()
 {
     this.SignalRHubContext    = hubContext;
     this.QuoteGetItemsCommand = quoteGetItemsCommand;
     this.SyncCommand          = syncCommand;
     this.FunzaSync            = funzaSync;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="FunzaColorController"/> class.
        /// </summary>
        /// <param name="hubContext"></param>
        /// <param name="pageQueryCommand">The page query command</param>
        /// <param name="getAllCommand">The get all command.</param>
        /// <param name="getByIdCommand">The get by identifier command.</param>
        /// <param name="insertCommand">The insert command.</param>
        /// <param name="updateCommand">The update command.</param>
        /// <param name="deleteCommand">The delete command.</param>
        public ProductQuoteController(IHubContext <GlobalHub, IGlobalHub> hubContext, IFunzaQuoteGetItemsCommand pageQueryCommand, IProductGetByIdCommand getByIdCommand, IInternalQuoteClient quoteClient) : base()
        {
            this.SignalRHubContext = hubContext;
            this.PageQueryCommand  = pageQueryCommand;
            this.GetByIdCommand    = getByIdCommand;

            this.QuoteClient = quoteClient;
        }
        public FunzaSyncCommand(IFunzaGetProductsCommand getProductsCommand, IFunzaProductsUpdateCommand productsUpdateCommand, IFunzaGetColorsCommand getColorsCommand, IFunzaColorsUpdateCommand colorsUpdateCommand, IFunzaGetCategoriesCommand getCategoriesCommand, IFunzaCategoriesUpdateCommand categoriesUpdateCommand, IFunzaGetPackingsCommand getPackingsCommand, IFunzaPackingsUpdateCommand packingsUpdateCommand, IFunzaQuoteGetItemsCommand getQuotesCommand, IFunzaQuotesUpdateCommand quotesUpdateCommand)
        {
            this.ProductsUpdateCommand = productsUpdateCommand;
            this.GetProductsCommand    = getProductsCommand;

            this.GetColorsCommand    = getColorsCommand;
            this.ColorsUpdateCommand = colorsUpdateCommand;

            this.GetCategoriesCommand    = getCategoriesCommand;
            this.CategoriesUpdateCommand = categoriesUpdateCommand;

            this.GetPackingsCommand    = getPackingsCommand;
            this.PackingsUpdateCommand = packingsUpdateCommand;

            this.GetQuotesCommand    = getQuotesCommand;
            this.QuotesUpdateCommand = quotesUpdateCommand;
        }