Пример #1
0
        private Staff GetStaffAccompanying(int personId)
        {
            StaffData     sd          = new StaffData();
            List <Person> specialists = sd.GetList();
            Person        person      = specialists.Find(x => x.PersonId == personId);

            person.FirstName = person.GetFullName();
            return((Staff)person);
        }
Пример #2
0
        public Staff GetStaff(int StaffId)
        {
            StaffData     sd   = new StaffData();
            List <Person> list = sd.GetList(StaffId);
            Staff         st;

            if (list.Count > 0)
            {
                st = (Staff)list[0];
            }
            else
            {
                st = null;
            }
            st.FullName = st.GetFullName();
            return(st);
        }