Пример #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;
 }