public async Task <MatchedProfile> RematchProfileAsync(string profileId) { var result = _matchedProfilesRepository.FindOne(profile => profile.ProfileId == profileId); if (result == null) { throw new Exception($"Profile with id {profileId} was not yet matched and cannot be re-matched"); } return(await MatchProfileAsync(profileId)); }