コード例 #1
0
 public ActionResult Form(string roleId, string perIds)
 {
     _roleAuthorizeService.Authorize(roleId, perIds.ToStrArray());
     return(Success("授权成功"));
 }
コード例 #2
0
 public ActionResult Form(Guid roleId, string perIds)
 {
     _roleAuthorizeService.Authorize(roleId, perIds.ToStrArray().Select(t => Guid.Parse(t)).ToArray());
     return(Success("授权成功"));
 }