public static AccountType GetInstanceByName(string name) { return(AccountIdentificationTypeList.FirstOrDefault(x => x.Text == name) ?? null); }
public static AccountType GetInstance(int value) { return(AccountIdentificationTypeList.FirstOrDefault(x => x.Value == value) ?? null); }