private bool ProgrammeExists(string id) { var programme = programmeRepository.FindAsync(e => e.ProgrammeID == id); return((programme != null) ? true : false); }