コード例 #1
0
        public static dto.ContactInfo ToDTO(this bll.ContactInfo bll)
        {
            dto.ContactInfo dto = new dto.ContactInfo();

            dto.Id                 = bll.Id;
            dto.ContactType        = bll.ContactType;
            dto.ContactInformation = bll.ContactInformation;
            dto.Description        = bll.Description;

            return(dto);
        }
コード例 #2
0
        public static bll.ContactInfo ToBLL(this dto.ContactInfo dto)
        {
            bll.ContactInfo bll = new bll.ContactInfo();

            bll.Id                 = dto.Id;
            bll.ContactType        = dto.ContactType;
            bll.ContactInformation = dto.ContactInformation;
            bll.Description        = dto.Description;

            return(bll);
        }