Esempio n. 1
0
 private static BookRecomendation MapToBookRecommendationModel(BookScore book, int userId)
 {
     return(new BookRecomendation
     {
         UserId = userId,
         BookId = book.BookId,
         PredictedRate = book.PredictedRate
     });
 }
Esempio n. 2
0
 private Test MapScoreToTest(BookScore score, int settingVersion)
 {
     return(new Test
     {
         ActualRate = score.Rate,
         BookId = score.BookId,
         ParametersSet = settingVersion,
         UserId = score.UserId,
         PredictedRate = score.PredictedRate
     });
 }