mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 10:32:13 +01:00
15 lines
402 B
C#
15 lines
402 B
C#
|
#nullable enable
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using BTCPayServer.Abstractions.Custodians;
|
||
|
|
||
|
namespace BTCPayServer.Abstractions.Extensions;
|
||
|
|
||
|
public static class CustodianExtensions
|
||
|
{
|
||
|
public static ICustodian? GetCustodianByCode(this IEnumerable<ICustodian> custodians, string code)
|
||
|
{
|
||
|
return custodians.FirstOrDefault(custodian => custodian.Code == code);
|
||
|
}
|
||
|
}
|