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