public async Task <ConsultantResponse> GetByIdAsync(int id) { var existingConsultant = await _consultantRepository.FindById(id); if (existingConsultant == null) { return(new ConsultantResponse("Consultant not found")); } return(new ConsultantResponse(existingConsultant)); }