une commande de coupe de cheveux
This commit is contained in:
parent
27b26f0545
commit
c001994d50
38 changed files with 3137 additions and 196 deletions
18
Yavsc/Helpers/BankInfoHelpers.cs
Normal file
18
Yavsc/Helpers/BankInfoHelpers.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
namespace Yavsc.Helpers
|
||||
{
|
||||
using Models.Bank;
|
||||
public static class BankInfoHelpers
|
||||
{
|
||||
public static bool IsValid(this BankIdentity info) {
|
||||
return ByIbanBIC(info) || ByAccountNumber(info) ;
|
||||
}
|
||||
public static bool ByIbanBIC(this BankIdentity info) {
|
||||
return (info.BIC != null && info.IBAN != null) ;
|
||||
}
|
||||
public static bool ByAccountNumber(this BankIdentity info){
|
||||
|
||||
return (info.BankCode != null && info.WicketCode != null && info.AccountNumber != null && info.BankedKey >0);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue