示例#1
0
        public async Task <ActionResult> CustomerChoice(string BrandName)
        {
            if (BrandName == "")
            {
                return(RedirectToAction("CustomerChoice"));
            }
            else
            {
                List <BikeModel> bikeModels = new List <BikeModel>();
                bikeModels = await _modelManager.CustomerChoice(BrandName);

                if (bikeModels == null)
                {
                    return(View("null"));
                }
                else
                {
                    return(View(bikeModels));
                }
            }
        }