public IActionResult Get(string id) { var response = new HttpResponseMessage(HttpStatusCode.OK); try { MatchedProfile matchedProfile = _matcher.GetMatchedProfile(id); return(new JsonResult(Dtos.ToDto(matchedProfile))); } catch (Exception) { //Log throw; } }
public static MatchedProfileDto ToDto(MatchedProfile matchedProfile) { return(new MatchedProfileDto(matchedProfile.ProfileId, matchedProfile.MatchingProfileIds.ToArray())); }