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)); } }
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)); } }