public ActionResult Invite() { var ICM = new InviteCodeManager(); ViewBag.Invite = ICM.GenerateCode(); return(View()); }
/// <summary> /// 新增一个邀请码 /// </summary> /// <returns></returns> public JsonResult Invite() { var icm = new InviteCodeManager(); return(Json(new { code = icm.GenerateCode(alwaysNew: true) })); }