public async Task <(bool IsSuccess, IEnumerable <ProjectManager> projectManagers, string ErrorMessage)> LoadProjectManagers() { try { var projectManagers = await _projectManagerRepository.GetAll().ToListAsync(); if (projectManagers == null) { return(false, new List <ProjectManager>(), "No record found."); } return(true, projectManagers, "Project Managers loaded successfully."); } catch (Exception e) { Console.WriteLine(e); throw; } }