Beispiel #1
0
        public static AccountSubjectObj FindByNo(string no)
        {
            var accountSubjectObj = Instance.AccountSubjectObjects.FirstOrDefault(item => item.no == no);

            if (accountSubjectObj == null)
            {
                accountSubjectObj = new AccountSubjectObj();
            }
            return(accountSubjectObj);
        }
Beispiel #2
0
        public static AccountSubjectObj Find(long accountSubjectId)
        {
            var accountSubjectObj = Instance.AccountSubjectObjects.FirstOrDefault(item => item.id == accountSubjectId);

            if (accountSubjectObj == null)
            {
                accountSubjectObj = new AccountSubjectObj();
            }
            return(accountSubjectObj);
        }