예제 #1
0
 public static CommentModel ToModel(this Comment comment, IHttpClientProvider httpClientProvider, UserModel userModel = null, TaskModel taskModel = null)
 {
     return(new CommentModel(comment.Id)
     {
         Index = comment.Index,
         Content = comment.Content,
         CreateDateTime = comment.CreateDateTime,
         UserModel = comment.CheckOrDownloadUserModel(httpClientProvider, userModel),
         TaskModel = comment.CheckOrDownloadTaskModel(httpClientProvider, taskModel, userModel, userModel)
     });
 }