private async Task <bool> ModuleExists(string id) { var module = await moduleRepository.FindAsync(m => m.ModuleID == id); return((module != null) ? true : false); }