コード例 #1
0
        public static int GetSpecialtyId(int staffId)
        {
            Staff staff = Staffs.Find(s => s.Id == staffId);

            return(staff.SpecialtyId);
        }
コード例 #2
0
        private static string GetStaffName(int staffId)
        {
            Staff staff = Staffs.Find(s => s.Id == staffId);

            return(string.Format("{0}, {1}", staff.FirstName, staff.LastName));
        }