示例#1
0
 public ActionResult AfterEdit(Goods goods)
 {
     if (goods != null)
     {
         var temp = GoodsBll.Edit(goods);
         if (temp == true)
         {
             return(Content("ok:成功"));
         }
         else
         {
             return(Content("no: 失败"));
         }
     }
     ViewBag.goodtype   = new SelectList(GoodsTypeBll.GetAll(), "Type_ID", "Type_Name", goods.Type_ID);
     ViewBag.goodborder = new SelectList(BorderBll.GetAll(), "Border_ID", "Border_Name", goods.Border_ID);
     return(View());
 }