示例#1
0
 public static SearchResult SearchMap(SearchResultModel model)
 {
     return(new SearchResult
     {
         id = model.id,
         title = model.title,
         body = model.body
     });
 }
示例#2
0
 public static SearchResult Map(SearchResultModel model)
 {
     return(new SearchResult
     {
         PostId = model.PostId,
         PostTitle = model.PostTitle,
         PostText = model.PostText,
         PostScore = model.PostScore,
         Rank = model.Rank
     });
 }