Esempio n. 1
0
        public Intern GetMemberById(int id)
        {
            var intern = db.Find <Intern>(id);

            db.Entry(intern).Reference(_ => _.Location).Load();
            db.Entry(intern).Collection(_ => _.Projects).Load();
            return(intern);
        }
Esempio n. 2
0
 public Employee GetEmployeeById(int id)
 {
     return(db.Find <Employee>(id));
 }