private List <Note> GetFileList() { NMSEntities db = new NMSEntities(); List <Note> DetList = new List <Note>(); // DbConnection(); //con.Open(); //object v = (TempData["TID"]) as string; //string Tid = v.ToString(); //string Tid= (TempData["TID"]) as string; //string Tid = Session["TID"].ToString(); // Note n = new Models.Note(); DetList = db.GetTeachersPdfNotes().ToList(); //con.Close(); return(DetList); }