public IHttpActionResult Add(Goods Info) { GoodsManager bll = new GoodsManager(); var result = bll.Add(Info); return(Json(result)); }
public ActionResult Add(Goods Info) { GoodsManager bll = new GoodsManager(); var result = bll.Add(Info); return(Json(result, JsonRequestBehavior.AllowGet)); }