public static externalDTO.Material MapFromInternal(internalDTO.Material material) { var res = material == null ? null : new externalDTO.Material { Id = material.Id, MaterialName = material.MaterialName, }; return(res); }
public static internalDTO.Material MapFromDAL(externalDTO.Material material) { var res = material == null ? null : new internalDTO.Material { Id = material.Id, MaterialName = new internalDTO.MultiLangString(material.MaterialName) }; return(res); }