Exemple #1
0
        public Task <ProductSelectionViewModel> GetProductListPage(CreateOrderFlowContext context, GoToProductSelectionCommand command)
        {
            var viewModel = new ProductSelectionViewModel
            {
                FlowContext = context,
                Product     = context.Product,
            };

            return(Task.FromResult(viewModel));
        }
Exemple #2
0
        public Task <PaymentDetailsViewModel> GetPaymentPage(CreateOrderFlowContext context, SubmitPaymentDetailsCommand command)
        {
            var viewModel = new PaymentDetailsViewModel
            {
                FlowContext   = context,
                PaymentMethod = command?.PaymentMethod ?? context.PaymentMethod,
            };

            return(Task.FromResult(viewModel));
        }
Exemple #3
0
        public Task <ContactDetailsViewModel> GetContactDetailsPage(CreateOrderFlowContext context, SubmitProductSelectionCommand command)
        {
            var viewModel = new ContactDetailsViewModel
            {
                FlowContext = context,
                Email       = context.Email,
            };

            return(Task.FromResult(viewModel));
        }
Exemple #4
0
        public Task <SummaryPageViewModel> GetSummaryPage(CreateOrderFlowContext context, SubmitPaymentDetailsCommand command)
        {
            var reservationCode = new Random().Next(1111, 9999).ToString();

            var viewModel = new SummaryPageViewModel
            {
                FlowContext = context,
                OrderCode   = reservationCode,
            };

            return(Task.FromResult(viewModel));
        }