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; }
public static Program ToProgram(this ProgramV1DTO item) { if (item == null) { throw new ArgumentException(nameof(item)); } Program program = new Program(); program.CopyFromProgramV1DTO(item); return(program); }
public static ProgramV1DTO ToProgramV1DTO(this Program item) { if (item == null) { throw new ArgumentException(nameof(item)); } ProgramV1DTO programV1DTO = new ProgramV1DTO(); programV1DTO.CopyFromProgram(item); return(programV1DTO); }