Пример #1
0
        public TestTitles GetTestTitle(TestTitles testTitle, TestTitleDto testTitleDto)
        {
            testTitle.Id                    = testTitleDto.Id;
            testTitle.GroupId               = testTitleDto.GroupId;
            testTitle.Name                  = testTitleDto.Name;
            testTitle.Charges               = testTitleDto.Charges;
            testTitle.OrderBy               = testTitleDto.OrderBy;
            testTitle.HeaderNote            = testTitleDto.HeaderNote;
            testTitle.FooterNote            = testTitleDto.FooterNote;
            testTitle.WordFormatResult      = testTitleDto.WordFormatResult;
            testTitle.ShowNormalRangeHeader = testTitleDto.ShowNormalRangeHeader;
            testTitle.ModifiedBy            = testTitleDto.ModifiedBy;
            testTitle.ModifiedDate          = DateTime.UtcNow;

            return(testTitle);
        }
Пример #2
0
        public TestTitleDto GetTestTitleDto(TestTitles testTitle)
        {
            var dto = new TestTitleDto();

            dto.Id                    = testTitle.Id;
            dto.GroupId               = testTitle.GroupId;
            dto.Name                  = testTitle.Name;
            dto.Charges               = testTitle.Charges;
            dto.OrderBy               = testTitle.OrderBy;
            dto.HeaderNote            = testTitle.HeaderNote;
            dto.FooterNote            = testTitle.FooterNote;
            dto.WordFormatResult      = testTitle.WordFormatResult;
            dto.ShowNormalRangeHeader = testTitle.ShowNormalRangeHeader;
            dto.ModifiedBy            = testTitle.ModifiedBy;
            dto.ModifiedDate          = testTitle.ModifiedDate;

            return(dto);
        }