public static Custodian GetCustodian_num(int num) { CustodianMaster.Init_from_DB(); if (CustodianMaster.num_dic.ContainsKey(num)) { return(CustodianMaster.num_dic[num]); } else { return(null); } }
public static Custodian GetCustodian_name(string name) { CustodianMaster.Init_from_DB(); if (name == null) { return(null); } if (CustodianMaster.full_dic.ContainsKey(name)) { return(CustodianMaster.full_dic[name]); } else if (CustodianMaster.short_dic.ContainsKey(name)) { return(CustodianMaster.short_dic[name]); } else { return(null);//more work needed to check alies } }