private void BindCatagroy() { InitParas(); List <SelectListItem> details = new List <SelectListItem>(); details.Add(new SelectListItem() { Value = "0", Text = "--请选择物品类别--" }); houseService.GetChannelBuyDetail(this.ControllerName, this.ActionName).ForEach(r => details.Add(new SelectListItem() { Text = r.ChannelListDetailName, Value = r.ChannelListDetailId.ToString() })); ViewData["catagroy"] = details; }