Exemplo n.º 1
0
        public ActionResult BrandItems(BDMViewModel vm)
        {
            var           brandstring  = vm.Searchbrand;
            List <string> keywords     = new List <string>(brandstring.Split(' '));
            List <string> descKeywords = new List <string>();

            foreach (string str in keywords)
            {
                if (str != "")
                {
                    descKeywords.Add(str);
                }
            }
            ItemSearch searchquery = new ItemSearch
            {
                UPC         = "",
                Description = descKeywords
            };
            BDMViewModel newvm = new BDMViewModel
            {
                Items = GetItems(searchquery)
            };

            return(PartialView("_LaunchBDMStep1Table", newvm));
        }
Exemplo n.º 2
0
        public ActionResult LaunchBDM(string a)
        {
            BDMViewModel vm = new BDMViewModel
            {
                Brands = GetBrands()
            };

            ViewBag.a = a.ToString();
            return(View(vm));
        }