public ActionResult Index(string id, ProductPickerMode mode, string selectedItems)
        {
            var viewModel = new ProductPickerViewModel
            {
                SearchCriteria = "",
                Mode = mode.ToString(),
                ControlId = id,
                SelectedItems = ConvertSelectedItemsToJson(selectedItems)
            };

            return View(viewModel);
        }
Esempio n. 2
0
        public ActionResult Index(string id, ProductPickerMode mode, string selectedItems)
        {
            var viewModel = new ProductPickerViewModel
            {
                SearchCriteria = "",
                Mode           = mode.ToString(),
                ControlId      = id,
                SelectedItems  = ConvertSelectedItemsToJson(selectedItems)
            };

            return(View(viewModel));
        }