public ProductController(NotificationContext notificationContext, IClientApplicationService clientService, IProductApplicationService productService, ITrackingApplicationService trackingService)
     : base(notificationContext)
 {
     _clientAppService   = clientService;
     _productAppService  = productService;
     _trackingAppService = trackingService;
 }
Beispiel #2
0
 public TrackingController(ITrackingApplicationService boxTrackingApplicationService, IBoxApplicationService boxApplicationService,
                           IProductApplicationService productApplicationService, IClientApplicationService clientApplicationService)
 {
     _boxApplicationService         = boxApplicationService;
     _productApplicationService     = productApplicationService;
     _boxTrackingApplicationService = boxTrackingApplicationService;
     _clientApplicationService      = clientApplicationService;
 }
Beispiel #3
0
 public BoxController(IBoxApplicationService boxApplicationService, IProductApplicationService productApplicationService,
                      IClientApplicationService clientService, ITrackingApplicationService trackingService)
 {
     _boxApplicationService     = boxApplicationService;
     _productApplicationService = productApplicationService;
     _trackingService           = trackingService;
     _clientService             = clientService;
 }
Beispiel #4
0
 public ShopController(IMovieApplicationService movieApplicationService,
                       IGameApplicationService gameApplicationService,
                       IClientApplicationService clientApplicationServic,
                       IRentalApplicationService rentalApplicationService)
 {
     _movieApplicationService  = movieApplicationService;
     _gameApplicationService   = gameApplicationService;
     _clientApplicationService = clientApplicationServic;
     _rentalApplicationService = rentalApplicationService;
 }
Beispiel #5
0
        private IDictionary <int, IClient> GetClientCache(IClientApplicationService clientApplicationService)
        {
            var result = clientApplicationService.GetAllAsync().Result;

            if (result.IsSuccessful)
            {
                return(result.Content.ToDictionary(x => x.Id, x => x));
            }

            throw new Exception(result.Message);
        }
        public void LoadViewDataClients(IClientApplicationService clientAppService)
        {
            var clients = clientAppService.GetAll()
                          .Select(client => new SelectListItem
            {
                Value = client.DT_RowId,
                Text  = client.Name
            }).ToList();

            ViewData["Clients"] = clients;
        }
 public SaleController(IClientApplicationService clientService, IRouteApplicationService routeService,
                       IDeliveryApplicationService deliveryService, IProductApplicationService productService,
                       ISaleApplicationService saleService, IPaymentApplicationService paymentService,
                       IBoxApplicationService boxService)
 {
     _clientService   = clientService;
     _routeService    = routeService;
     _deliveryService = deliveryService;
     _productService  = productService;
     _saleService     = saleService;
     _paymentService  = paymentService;
     _boxService      = boxService;
 }
Beispiel #8
0
 public ClientIntegrationService(
     ILogManager logManager,
     IClientApplicationService clientApplicationService,
     IAuditExportService exportService,
     IAuditImportService importService,
     IAuditReportService resportService)
 {
     _logManager = logManager;
     _clientApplicationService = clientApplicationService;
     _importService            = importService;
     _exportService            = exportService;
     _reportService            = resportService;
 }
 public DeliveryController(IClientApplicationService clientService, IRouteApplicationService routeService,
                           IDeliveryApplicationService deliveryService, IProductApplicationService productService,
                           ISaleApplicationService saleService, ISecurityApplicationService securityService,
                           IBoxApplicationService boxService, ITrackingApplicationService trackingApplicationService)
 {
     _boxService                 = boxService;
     _clientService              = clientService;
     _routeService               = routeService;
     _deliveryService            = deliveryService;
     _productService             = productService;
     _saleService                = saleService;
     _securityService            = securityService;
     _trackingApplicationService = trackingApplicationService;
 }
Beispiel #10
0
 public AuditEngine(
     IAuditApplicationService auditApplicationService,
     IClientApplicationService clientApplicationService,
     IAuditActionFactory auditStepFactory,
     IAuditWorkflowService workflowService,
     ILogManager logManager)
 {
     _auditApplicationService = auditApplicationService;
     _auditActionFactory      = auditStepFactory;
     _workflowService         = workflowService;
     _logManager  = logManager;
     _stepCache   = new Dictionary <string, IAuditWorkflowStep>();
     _clientCache = GetClientCache(clientApplicationService);
 }
Beispiel #11
0
 public RouteController(IClientApplicationService clientService, IRouteApplicationService routeService)
 {
     _clientApplicationService = clientService;
     _routeApplicationService  = routeService;
 }
Beispiel #12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logManager">A logger</param>
 /// <param name="applicationService">The application service containing the businesss logic and workflow.</param>
 public ClientController(ILogManager logManager, IClientApplicationService applicationService)
 {
     _applicationService = applicationService;
     _logManager         = logManager;
 }
 public ClientController(IClientApplicationService clientService, IAddressApplicationService addressApplicationService)
 {
     _clientApplicationService  = clientService;
     _addressApplicationService = addressApplicationService;
 }
 public ClientsController(IClientApplicationService service)
 {
     _service = service;
 }
 public HomeController(IClientApplicationService userService, IMapper mapper)
 {
     _userService = userService;
     _mapper      = mapper;
 }
 public ClientsController(IClientApplicationService service, IModelStateAccessor accessor) : base(accessor)
 {
     _service = service;
 }
 public ClientController(IClientApplicationService applicationService)
 {
     _applicationService = applicationService;
 }
 /// <summary>
 /// Client Controller Constructor
 /// </summary>
 /// <param name="clientApplicationService"></param>
 public ClientController(IClientApplicationService clientApplicationService)
 {
     _clientApplicationService = clientApplicationService;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="clientApplicationService"></param>
 /// <param name="mapper"></param>
 public ClientController(IClientApplicationService clientApplicationService, IMapper mapper)
 {
     _clientApplicationService = clientApplicationService;
     _mapper = mapper;
 }