Exemple #1
0
 public static DbLinkTaskItemWithComment ToDbLink(this DbTaskComment @this, int taskId)
 {
     return(new DbLinkTaskItemWithComment
     {
         TaskItemId = taskId,
         TaskCommentId = @this.Id,
     });
 }
Exemple #2
0
 public static ITaskComment ToModel(this DbTaskComment @this, IUser user)
 {
     return(new TaskComment
     {
         Id = @this.Id,
         Day = @this.Day,
         Text = @this.Text,
         Who = user,
     });
 }