// Get supervisor name if exist public string SupervisorApprovedStatus() { using (var db = new TESDataContext()) { // If Supper visor is assigned var log = (from ss in db.Student_Supervisors where ss.student_id == this.StudentId && ss.supervise == true select ss.supervisor_id).FirstOrDefault(); if (log != null) { _Supervisor s = new _Supervisor(); return(s.GetById(log).User.FullName); } return(""); } }
public string CoSupervisorExists() { _Supervisor s = new _Supervisor(); using (var db = new TESDataContext()) { var log = (from t in db.Thesis where t.student_id == this.StudentId select t).FirstOrDefault(); if (log != null) { if (log.cosupervisor_id != null) { return(s.GetById(log.cosupervisor_id).User.FullName); } } return(""); } }
public _Meeting() { Supervisor = new _Supervisor(); Student = new _Student(); }
public _Thesis() { Supervisor = new _Supervisor(); Student = new _Student(); }