Пример #1
0
        public static externalDTO.Material MapFromDomain(internalDTO.Material material)
        {
            var res = material == null ? null : new externalDTO.Material
            {
                Id           = material.Id,
                MaterialName = material.MaterialName.Translate()
            };

            return(res);
        }
Пример #2
0
 public void AddMaterial(Material material)
 {
     AddObject(Relation.VerbType.OverlapsMaterial, material);
 }
 internal void RemoveMaterial(Material material)
 {
     RemoveObject(Relation.VerbType.MadeOf, material);
 }
 internal void AddMaterial(Material material)
 {
     AddObject(Relation.VerbType.MadeOf, material);
 }