public TestGroups GetTestGroup(TestGroups testGroup, TestGroupDto testGroupDto) { testGroup.Id = testGroupDto.Id; testGroup.Name = testGroupDto.Name; testGroup.Notes = testGroupDto.Notes; testGroup.OrderNo = testGroupDto.OrderNo; testGroup.ShowTitleInReports = testGroupDto?.ShowTitleInReports; testGroup.ModifiedBy = testGroupDto?.ModifiedBy; testGroup.ModifiedDate = DateTime.UtcNow; return(testGroup); }
public TestGroupDto GetTestGroupDto(TestGroups testGroups) { var dto = new TestGroupDto(); dto.Id = testGroups.Id; dto.Name = testGroups.Name; dto.Notes = testGroups.Notes; dto.OrderNo = testGroups.OrderNo; dto.ShowTitleInReports = testGroups?.ShowTitleInReports; dto.ModifiedBy = testGroups?.ModifiedBy; dto.ModifiedDate = testGroups.ModifiedDate; return(dto); }