Exemple #1
0
 public static void CopyFromProgram(this ProgramV1DTO to, Program from)
 {
     to.ProgramId          = from.ProgramId;
     to.SponsorName        = from.SponsorName;
     to.OfferType          = from.OfferType;
     to.ProgramName        = from.ProgramName;
     to.ProgramOfferNumber = from.ProgramOfferNumber;
 }
Exemple #2
0
        public static Program ToProgram(this ProgramV1DTO item)
        {
            if (item == null)
            {
                throw new ArgumentException(nameof(item));
            }

            Program program = new Program();

            program.CopyFromProgramV1DTO(item);
            return(program);
        }
Exemple #3
0
        public static ProgramV1DTO ToProgramV1DTO(this Program item)
        {
            if (item == null)
            {
                throw new ArgumentException(nameof(item));
            }

            ProgramV1DTO programV1DTO = new ProgramV1DTO();

            programV1DTO.CopyFromProgram(item);
            return(programV1DTO);
        }