コード例 #1
0
        //        public bool isSelected { get; set; }
        public static string ReturnLanName(int lanID)
        {
            MyContextClass myCntextClass = new MyContextClass();
            Languages      MyLanguages   = myCntextClass.Languages.Single(de => de.ID == lanID);

            return(MyLanguages.Name);
        }
コード例 #2
0
        public static string ReturnDepName(int DepID)
        {
            MyContextClass myCntextClass = new MyContextClass();
            Department     MyDepartment  = myCntextClass.Departments.Single(de => de.ID == DepID);

            return(MyDepartment.Name);
        }