fix: converter dto
This commit is contained in:
parent
25eddbe776
commit
5e072d88c2
@ -17,11 +17,11 @@ public static class AvailableProvidersConverter
|
|||||||
_ => throw new ArgumentOutOfRangeException(nameof(provider), provider, null)
|
_ => throw new ArgumentOutOfRangeException(nameof(provider), provider, null)
|
||||||
};
|
};
|
||||||
|
|
||||||
public static List<AvailableProvidersResponse> ConvertToDto(this (OAuthProvider Provider, Uri Redirect)[] data) =>
|
public static List<AvailableOAuthProvidersResponse> ConvertToDto(this (OAuthProvider Provider, Uri Redirect)[] data) =>
|
||||||
data.Select(x => new AvailableProvidersResponse()
|
data.Select(x => new AvailableOAuthProvidersResponse()
|
||||||
{
|
{
|
||||||
ProviderName = Enum.GetName(x.Provider)!,
|
ProviderName = Enum.GetName(x.Provider)!,
|
||||||
Provider = x.Provider.ConvertToDto(),
|
Provider = x.Provider.ConvertToDto(),
|
||||||
Redirect = x.Redirect
|
Redirect = x.Redirect.ToString()
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user