常用方法
常用方法
常用方法
常用方法
/// <summary> /// 获取购物车产品数 /// </summary> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult GetShoppingCartCount(EnumDocType ordertype) { var count = OrdersBusiness.GetShoppingCartCount(ordertype, CurrentUser.UserID); JsonDictionary.Add("Quantity", count); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }