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); }
public Employee GetEmployeeById(int id) { return(db.Find <Employee>(id)); }