Пример #1
0
 public static ITaskItem ToModel(this DbTaskItem @this)
 {
     return(new TaskItem
     {
         Id = @this.Id,
         Name = @this.Name,
         Value = @this.Value,
     });
 }
Пример #2
0
 public static DbLinkSprintWithTask ToDbLink(this DbSprint @this, DbTaskItem taskitem, int order)
 {
     return(new DbLinkSprintWithTask
     {
         SprintId = @this.Id,
         TaskItemId = taskitem.Id,
         Sort = order,
     });
 }
Пример #3
0
 public static DbLinkSprintWithTask ToDbLink(this DbSprint @this, DbTaskItem taskitem, int order)
 {
     return new DbLinkSprintWithTask
     {
         SprintId = @this.Id,
         TaskItemId = taskitem.Id,
         Sort = order,
     };
 }