public object ToDTO() { return(new IterationDTO { IterationID = ID, ProjectID = ProjectID, SprintStartDate = SprintStartDate.ToString("d"), SprintEndDate = SprintEndDate.ToString("d"), SprintName = SprintName, Archived = Archived }); }
public object GetDetails() { return(new IterationDetailsDTO { IterationID = ID, ProjectID = ProjectID, SprintStartDate = SprintStartDate.ToString("d"), SprintEndDate = SprintEndDate.ToString("d"), SprintName = SprintName, Archived = Archived, productBacklogItems = ProductBacklogItems.GetDetails <ProductBacklogItemDetailsDTO>().ToList() }); }