示例#1
0
        public static externalDTO.ManuFacturer MapFromDAL(internalDTO.ManuFacturer manuFacturer)
        {
            var res = manuFacturer == null ? null : new  externalDTO.ManuFacturer
            {
                Id               = manuFacturer.Id,
                Aadress          = manuFacturer.Aadress,
                ManuFacturerName = manuFacturer.ManuFacturerName,
                PhoneNumber      = manuFacturer.PhoneNumber
            };

            return(res);
        }
示例#2
0
        public static Domain.ManuFacturer MapFromDAL(DAL.App.DTO.DomainLikeDTO.ManuFacturer manuFacturer)
        {
            var res = manuFacturer == null ? null : new Domain.ManuFacturer
            {
                Id               = manuFacturer.Id,
                Aadress          = new MultiLangString(manuFacturer.Aadress),
                ManuFacturerName = new MultiLangString(manuFacturer.ManuFacturerName),
                PhoneNumber      = new MultiLangString(manuFacturer.PhoneNumber)
            };

            return(res);
        }