Exemplo n.º 1
0
        public async Task <ActionResult> UxCustomerSearchCriteria(string txid, [Bind(Include = "Name, DOB", Prefix = "Criteria")] CustomerSearchCriteriaViewModel customerSearchCriteria) // Get CaptureSearchCriteria
        {
            if (!ModelState.IsValid)
            {
                return(View(customerSearchCriteria));
            }
            var uxCustomerSearchCriteria = await executionManager.LoadComponentFromExecutionThreadAsync <UxCustomerSearchCriteria>(txid);

            await uxCustomerSearchCriteria.SaveCustomerSearchCriteriaAsync(customerSearchCriteria);

            //return Redirect(await executionManager.RaiseOutcomeAsync(new TXID(txid), new ComponentDoneOutcome()));
            return(Redirect(await uxCustomerSearchCriteria.RedirectRaiseOutcomeAsync(new ComponentDoneOutcome())));
        }
Exemplo n.º 2
0
 public async Task SaveCustomerSearchCriteriaAsync(CustomerSearchCriteriaViewModel criteria)
 {
     CustomerName        = criteria.Name;
     CustomerDateOfBirth = criteria.DOB;
     await SaveAsync();
 }