public SalesController(ISalesAppService appService, IMapper mapper)
 {
     _appService = appService ??
                   throw new ArgumentNullException(nameof(appService));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
 public RankingPageViewModel(
     INavigationService navigationService,
     IUserDialogs userDialogs,
     IChallengesAppService challengesAppService,
     ISeasonAppService seasonAppService,
     IUserAppService userAppService,
     ISalesAppService salesAppService,
     IClientsAppService clientsAppService)
 {
     _navigationService               = navigationService;
     _userDialogs                     = userDialogs;
     _challengesAppService            = challengesAppService;
     _seasonAppService                = seasonAppService;
     _userAppService                  = userAppService;
     _salesAppService                 = salesAppService;
     _clientsAppService               = clientsAppService;
     GoToRankingPageCommand           = new DelegateCommand <RankingBannerDto>(GoToRankingPage).ObservesCanExecute(() => CanExecute);
     GoToCurrentChallengesPageCommand = new DelegateCommand(GoToCurrentChallengesPage).ObservesCanExecute(() => CanExecute);
     GoToAvgPiecesForSalePageCommand  = new DelegateCommand(GoToAvgPiecesForSalePage).ObservesCanExecute(() => CanExecute);
     GoToAvgTicketPageCommand         = new DelegateCommand(GoToAvgTicketPage).ObservesCanExecute(() => CanExecute);
     GoToEffectedSalesPageCommand     = new DelegateCommand(GoToEffectedSalesPage).ObservesCanExecute(() => CanExecute);
     GoToGeneralRankingPageCommand    = new DelegateCommand(GoToGeneralRankingPage).ObservesCanExecute(() => CanExecute);
     GoToInviteFlowerPageCommand      = new DelegateCommand(GoToInviteFlowerPage).ObservesCanExecute(() => CanExecute);
     GoToRegisterClientsPageCommand   = new DelegateCommand(GoToRegisterClientsPage).ObservesCanExecute(() => CanExecute);
     InitializeRankings();
 }
      /// <summary>
      ///    Create a new instance ERP Module Service
      /// </summary>
      /// <param name="customerAppService">The customer app service dependency</param>
      /// <param name="salesAppService">The sales app service dependency</param>
      public ErpModuleService(ICustomerAppService customerAppService, ISalesAppService salesAppService)
      {
         if (customerAppService == null) { throw new ArgumentNullException("customerAppService"); }

         if (salesAppService == null) { throw new ArgumentNullException("salesAppService"); }

         _customerAppService = customerAppService;
         _salesAppService = salesAppService;
      }
 public SalesController(
     ISalesAppService appService,
     ISalesLineAppService appLineService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _appService     = appService;
     _appLineService = appLineService;
 }
Example #5
0
 public EditPersonalDataPageViewModel(INavigationService navigationService,
                                      IUserAppService userAppService,
                                      ISalesAppService salesAppService)
 {
     _navigationService      = navigationService;
     _userAppService         = userAppService;
     _salesAppService        = salesAppService;
     ChangePasswordCommand   = new DelegateCommand(ChangePassword).ObservesCanExecute(() => CanExecute);
     EditPersonalDataCommand = new DelegateCommand(EditPersonalData).ObservesCanExecute(() => CanExecute);
 }
        public SalesHistoryPageViewModel(
            INavigationService navigationService,
            IUserDialogs userDialogs,
            ISalesAppService salesAppService)
        {
            _navigationService = navigationService;
            _userDialogs       = userDialogs;
            _salesAppService   = salesAppService;

            SaleSelectedCommand = new DelegateCommand <object>(SaleSelected).ObservesCanExecute(() => CanExecute);
        }
 public CurrentChallengesPageViewModel(ITrophyAppService trophyAppService,
                                       IUserAppService userAppService,
                                       ISalesAppService salesAppService,
                                       IClientsAppService clientsAppService)
 {
     _userAppService    = userAppService;
     _trophyAppService  = trophyAppService;
     _salesAppService   = salesAppService;
     _clientsAppService = clientsAppService;
     Challenges         = new ObservableCollection <Challenge>();
 }
Example #8
0
        /// <summary>
        ///    Create a new instance ERP Module Service
        /// </summary>
        /// <param name="customerAppService">The customer app service dependency</param>
        /// <param name="salesAppService">The sales app service dependency</param>
        public ErpModuleService(ICustomerAppService customerAppService, ISalesAppService salesAppService)
        {
            if (customerAppService == null)
            {
                throw new ArgumentNullException("customerAppService");
            }

            if (salesAppService == null)
            {
                throw new ArgumentNullException("salesAppService");
            }

            _customerAppService = customerAppService;
            _salesAppService    = salesAppService;
        }
Example #9
0
 public RegisterSalePageViewModel(
     INavigationService navigationService,
     IUserDialogs userDialogs,
     ISalesAppService salesAppService,
     IUserAppService userAppService,
     IGamificationPointsAppService gamificationPointsAppService,
     ITrophyAppService trophyAppService,
     IChallengesAppService challengesAppService,
     ISeasonAppService seasonAppService)
 {
     _navigationService            = navigationService;
     _userDialogs                  = userDialogs;
     _salesAppService              = salesAppService;
     _userAppService               = userAppService;
     _trophyAppService             = trophyAppService;
     _gamificationPointsAppService = gamificationPointsAppService;
     _challengesAppService         = challengesAppService;
     _seasonAppService             = seasonAppService;
     GoBackCommand                 = new DelegateCommand(GoBack).ObservesCanExecute(() => CanExecute);
     SaveSaleCommand               = new DelegateCommand(SaveSale).ObservesCanExecute(() => CanExecute);
     SaleRegistered                = new Sale();
 }
Example #10
0
        public LoginPageViewModel(
            INavigationService navigationService,
            IUserAppService userAppService,
            IUserDialogs userDialogs,
            IChallengesAppService challengesAppService,
            ISeasonAppService seasonAppService,
            ISalesAppService salesAppService,
            IClientsAppService clientsAppService)
        {
            _navigationService    = navigationService;
            _userAppService       = userAppService;
            _userDialogs          = userDialogs;
            _challengesAppService = challengesAppService;
            _seasonAppService     = seasonAppService;
            _salesAppService      = salesAppService;
            _clientsAppService    = clientsAppService;

            LoginCommand         = new DelegateCommand(ExecuteLogin).ObservesCanExecute(() => CanExecute);
            ResetPasswordCommand = new DelegateCommand(ResetPassword).ObservesCanExecute(() => CanExecute);

            CacheAccess.Initialize();
        }
Example #11
0
 public OrdersController(ISalesAppService salesAppService)
 {
     _salesAppService = salesAppService;
 }