public static AccountSubjectObj FindByNo(string no) { var accountSubjectObj = Instance.AccountSubjectObjects.FirstOrDefault(item => item.no == no); if (accountSubjectObj == null) { accountSubjectObj = new AccountSubjectObj(); } return(accountSubjectObj); }
public static AccountSubjectObj Find(long accountSubjectId) { var accountSubjectObj = Instance.AccountSubjectObjects.FirstOrDefault(item => item.id == accountSubjectId); if (accountSubjectObj == null) { accountSubjectObj = new AccountSubjectObj(); } return(accountSubjectObj); }