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); }
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); }