public async Task <IActionResult> Upgrade(string id, string Level, string points)
        {
            string result;

            if (Convert.ToInt32(points) >= 5000)
            {
                result = await PersonInfoservice.Upgrade(id, Level, points);
            }
            else
            {
                result = "false";
            }
            return(Redirect("/PersonInfo/UpgradeView/?id=" + id + "&flag=true&result=" + result));
        }
        public async Task <IActionResult> Upgrade(string id, string Level, string points)
        {
            string result;
            var    upgradetime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            var    randomnum   = new Random();
            var    order_no    = DateTime.Now.ToString("yyyyMMddHHmmss") + "_-_" + randomnum.Next(0, 1000).ToString();

            if (Convert.ToInt32(points) >= 5000 && Level != "5")
            {
                result = await PersonInfoservice.Upgrade(id, Level, points, order_no, upgradetime);
            }
            else if (Convert.ToInt32(points) < 5000 && Level != "5")
            {
                result = "false";
            }
            else
            {
                result = "limitlevel";
            }
            return(Redirect("/PersonInfo/UpgradeView/?id=" + id + "&flag=true&result=" + result));
        }