public static CodeBranch To(CodeBranchAPI item) { return(new CodeBranch { ID = item.ID, Name = item.Name, BranchCheckIns = CheckInAPI.To(item.BranchCheckIns) }); }
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 }); }
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 }); }