From cfe08dcf9b6e73321b2fb87a10f6ae1aa20503df Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Thu, 26 Dec 2024 08:42:24 +0300 Subject: [PATCH] refactor: get interface instead array --- Endpoint/Common/MapperDto/AvailableProvidersConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs b/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs index 9a01f17..3e32074 100644 --- a/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs +++ b/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs @@ -17,7 +17,7 @@ public static class AvailableProvidersConverter _ => throw new ArgumentOutOfRangeException(nameof(provider), provider, null) }; - public static List ConvertToDto(this (OAuthProvider Provider, Uri Redirect)[] data) => + public static List ConvertToDto(this IEnumerable<(OAuthProvider Provider, Uri Redirect)> data) => data.Select(x => new AvailableOAuthProvidersResponse() { ProviderName = Enum.GetName(x.Provider)!,