/// <summary>
 /// Checks the permission.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <returns></returns>
 public override CheckResult CheckPermission(IRpcSession session)
 {
     return(CheckResult.If(session.IsSet <Entity>(), "Please select a role first."));
 }
 /// <summary>
 /// Checks the permission.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <returns></returns>
 public override CheckResult CheckPermission(IRpcSession session)
 {
     return(CheckResult.If(session.IsSet <IAccount>(), "Not logged in"));
 }