コード例 #1
0
 public static bool ExistsUserInRole(int usuarioId, string normalizedRoleName, Connection connection, MySqlTransaction transaction = null)
 {
     using (var dao = new UserRoleDAO(connection))
     {
         return(dao.ExistsUserInRole(usuarioId, normalizedRoleName, transaction));
     }
 }
コード例 #2
0
 public static bool ExistsUserInRole(int usuarioId, int roleId, Connection connection, MySqlTransaction transaction = null)
 {
     using (var dao = new UserRoleDAO(connection))
     {
         return(dao.ExistsUserInRole(usuarioId, roleId, transaction));
     }
 }