Пример #1
0
        public UserPerson(Guid user_Person_ID)
        {
            UserPersonBL userPerson = new UserPersonBL();
            lnkUserPerson = userPerson.GetUser_PersonByUser_Person_ID(user_Person_ID);

            User_Person_ID = user_Person_ID;
            User_ID = lnkUserPerson[0].User_ID;
            Person_ID = lnkUserPerson[0].Person_ID;
        }
Пример #2
0
        public List<UserPerson> GetUser_PersonByPerson_ID(Guid person_ID)
        {
            List<UserPerson> userPersonList = new List<UserPerson>();
            UserPersonBL person = new UserPersonBL();
            lnkUserPerson = person.GetUser_PersonByUser_Person_ID(person_ID);

            if (lnkUserPerson != null && lnkUserPerson.Count > 0)
            {
                foreach (sss.lnkUser_PersonRow row in lnkUserPerson)
                {
                    UserPerson userPerson = new UserPerson(row.User_Person_ID);
                    userPersonList.Add(userPerson);
                }
            }

            return userPersonList;
        }