MuscleFellow icon indicating copy to clipboard operation
MuscleFellow copied to clipboard

在创建收货地址时,返回类型错误

Open sgalcheung opened this issue 6 years ago • 0 comments

返回类型错误return View(shipAddress); razor接收的是AddressCreationModel 我建议在if后面添加

AddressCreationModel acm = new AddressCreationModel();
            acm.ShipAddress = shipAddress;
            acm.Provinces.Add(new SelectListItem
            {
                Text = shipAddress.Province, Value = Request.Form["dpProvince"].ToString()
            });
            acm.ProvinceListName = "Province";
            acm.Cities = new List<SelectListItem>();
            acm.CityListName = "City";

返回 return View(acm);

sgalcheung avatar Jun 26 '19 04:06 sgalcheung