Beispiel #1
0
        public string Transfer([FromBody]Trans trans)
        {
            MysqlHelper mysqlhelper = new MysqlHelper();
            trans.Type = mysqlhelper.CheckTheInnerAccount(trans);
            var status = CheckAndChange(trans);
            if (status == "Success")
            {
                if (trans.Type == "1"|| trans.Type == "6")
                {
                    return mysqlhelper.TransPush(trans);
                }
                else
                {
                    return "Not a Transfer";
                }

            }
            else
            {
                return status;
            }
        }