public string GetActionName(string action) { if (action == "Use") { return "积分消费"; } if (action == "Buy") { return "购买商品"; } Maticsoft.Model.Members.PointsRule model = new Maticsoft.BLL.Members.PointsRule().GetModel(action); if (model != null) { return model.Name; } return ""; }
public string GetRuleName(string RuleAction) { Maticsoft.BLL.Members.PointsRule rule = new Maticsoft.BLL.Members.PointsRule(); return rule.GetRuleName(RuleAction); }