public ActionResult Create() { ViewBag.ixHandlingUnit = new SelectList(_pickbatchpickingService.selectHandlingUnits().Select(x => new { x.ixHandlingUnit, x.sHandlingUnit }), "ixHandlingUnit", "sHandlingUnit"); ViewBag.ixInventoryUnit = new SelectList(_pickbatchpickingService.selectInventoryUnits().Select(x => new { x.ixInventoryUnit, x.sInventoryUnit }), "ixInventoryUnit", "sInventoryUnit"); ViewBag.ixPickBatch = new SelectList(_pickbatchpickingService.selectPickBatches().Select(x => new { x.ixPickBatch, x.sPickBatch }), "ixPickBatch", "sPickBatch"); return(View()); }
private async Task <DialogTurnResult> InventoryUnitPrompt( WaterfallStepContext step, CancellationToken cancellationToken = default(CancellationToken)) { return(await step.PromptAsync( InventoryUnitPromptId, new PromptOptions { Prompt = MessageFactory.Text($"Please enter a InventoryUnit:"), RetryPrompt = MessageFactory.Text("Please choose an option from the list."), Choices = ChoiceFactory.ToChoices(_pickbatchpickingService.selectInventoryUnits().Select(ct => ct.sInventoryUnit).ToList()), }, cancellationToken)); }