예제 #1
0
 public static TaskLog To(TaskLogAPI item)
 {
     return(new TaskLog
     {
         ID = item.ID,
         LogDate = item.LogDate,
         StartTime = item.StartTime,
         EndTime = item.EndTime,
         Description = item.Description,
         TaskID = item.TaskID,
         Task = TaskAPI.To(item.Task, false),
         CheckIns = CheckInAPI.To(item.CheckIns),
         Comments = TaskLogCommentAPI.To(item.Comments)
     });
 }
예제 #2
0
 public static Requirement To(RequirementAPI item, bool includeTasks = true, bool includeComments = true)
 {
     if (item != null)
     {
         return(new Requirement
         {
             ID = item.ID,
             Title = item.Title,
             Status = item.Status,
             Tasks = includeTasks ? TaskAPI.To(item.Tasks) : null,
             Comments = includeComments ? RequirementCommentAPI.To(item.Comments) : null,
             FeatureID = item.FeatureID,
             Feature = FeatureAPI.To(item.Feature),
             IsNew = item.IsNew
         });
     }
     else
     {
         return(null);
     }
 }