Exemplo n.º 1
0
 public static CodeBranch To(CodeBranchAPI item)
 {
     return(new CodeBranch
     {
         ID = item.ID,
         Name = item.Name,
         BranchCheckIns = CheckInAPI.To(item.BranchCheckIns)
     });
 }
Exemplo n.º 2
0
 public static CheckInAPI From(CheckIn item)
 {
     return(new CheckInAPI
     {
         ID = item.ID,
         Comment = item.Comment,
         CheckInTime = item.CheckInTime,
         TaskLogID = item.TaskLogID,
         CodeBranchID = item.CodeBranchID,
         CodeBranch = item.CodeBranch != null?CodeBranchAPI.From(item.CodeBranch) : null,
                          TaskCheckIns = item.TaskCheckIns != null?TaskCheckInAPI.From(item.TaskCheckIns).ToList() : null,
                                             IsNew = item.IsNew
     });
 }
Exemplo n.º 3
0
 public static CheckIn To(CheckInAPI item)
 {
     return(new CheckIn
     {
         ID = item.ID,
         Comment = item.Comment,
         CheckInTime = item.CheckInTime,
         TaskLogID = item.TaskLogID,
         TaskLog = item.TaskLog != null?TaskLogAPI.To(item.TaskLog) : null,
                       CodeBranchID = item.CodeBranchID,
                       CodeBranch = item.CodeBranch != null?CodeBranchAPI.To(item.CodeBranch) : null,
                                        TaskCheckIns = TaskCheckInAPI.To(item.TaskCheckIns),
                                        IsNew = item.IsNew
     });
 }