// 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); }
public static string ReturnDepName(int DepID) { MyContextClass myCntextClass = new MyContextClass(); Department MyDepartment = myCntextClass.Departments.Single(de => de.ID == DepID); return(MyDepartment.Name); }