Пример #1
0
        public ActionResult Invite()
        {
            var ICM = new InviteCodeManager();

            ViewBag.Invite = ICM.GenerateCode();
            return(View());
        }
Пример #2
0
        /// <summary>
        /// 新增一个邀请码
        /// </summary>
        /// <returns></returns>
        public JsonResult Invite()
        {
            var icm = new InviteCodeManager();

            return(Json(new { code = icm.GenerateCode(alwaysNew: true) }));
        }