예제 #1
0
        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;
            }
        }
예제 #2
0
 public static MatchedProfileDto ToDto(MatchedProfile matchedProfile)
 {
     return(new MatchedProfileDto(matchedProfile.ProfileId, matchedProfile.MatchingProfileIds.ToArray()));
 }