public IEnumerable <object> IntelligentRecommendation(decimal score, int pnum, string classes, int year)
        {
            try
            {
                var account       = HttpContext.Session.GetString("user_Account");
                var localProvince = HttpContext.Session.GetString("user_Province");

                if (account == null || localProvince == null)
                {
                    return(new[]
                    {
                        new { msg = "not login" }
                    });
                }

                if (Server.AccountHandle(account) == 0)
                {
                    return(new[]
                    {
                        new { msg = "times exceeded" }
                    });
                }

                var re = IntelligentServer.IntelligentRecommendation(score, pnum, localProvince, classes, year);

                return(re);
            }
            catch (System.Exception ex)
            {
                return(new[] { new { msg = ex.Message } });
            }
        }
        public IEnumerable <object> IntelligentRecommendation(decimal score, int pnum, string localProvince, string classes, int year)
        {
            try
            {
                var addr = Server.GetUserIp(Request.HttpContext);
                if (Server.IPHandle(addr) == 0)
                {
                    return(new[] { "your ip can't using our api , please contact administrator" });
                }

                var re = IntelligentServer.IntelligentRecommendation(score, pnum, localProvince, classes, year);

                return(re);
            }
            catch (System.Exception ex)
            {
                return(new[] { new { msg = ex.Message } });
            }
        }