コード例 #1
0
        private ProjectDTO AssembleFrom(Project project)
        {
            ProjectDTO dto = new ProjectDTO();

            dto.Id        = project.Id;
            dto.Name      = project.Name;
            dto.TaskCount = project.Tasks.Count;
            return(dto);
        }
コード例 #2
0
 private ProjectDTO AssembleFrom(Project project)
 {
     ProjectDTO dto = new ProjectDTO();
     dto.Id = project.Id;
     dto.Name = project.Name;
     dto.TaskCount = project.Tasks.Count;
     return dto;
 }