public SubjectWithProgram GetByIdWithProgram(int id)
{
// Note that we must .Include("Program") to fetch the associated object
var subject = ds.Subjects.Include("Program").SingleOrDefault(i => i.Id == id);
return (subject == null) ? null : Mapper.Map<SubjectWithProgram>(subject);
}