Exemplo n.º 1
0
 public static DbLinkTaskItemWithRecord ToDbLink(this DbTaskRecord @this, int taskId)
 {
     return(new DbLinkTaskItemWithRecord
     {
         TaskItemId = taskId,
         TaskRecordId = @this.Id,
     });
 }
Exemplo n.º 2
0
 public static ITaskRecord ToModel(this DbTaskRecord @this, IUser user)
 {
     return(new TaskRecord
     {
         Id = @this.Id,
         Day = @this.Day,
         Value = @this.Value,
         Who = user,
         WorkValue = @this.WorkValue,
     });
 }