Esempio n. 1
0
 public Product FromModelToDomain(ProductModel modelObject)
 {
     return(new Product {
         ID = modelObject.ID, Type = deliveryTypeMapper.FromModelToDomain(modelObject.DeliveryType), Name = modelObject.Name, Price = modelObject.Price, TimeForPreparation = modelObject.TimeForPreparation, Volume = modelObject.Volume, Weight = modelObject.Weight
     });
 }
Esempio n. 2
0
 public Transport FromModelToDomain(TransportModel modelObject)
 {
     return(new Transport {
         ID = modelObject.ID, Type = deliveryTypeMapper.FromModelToDomain(modelObject.DeliveryType), InTheShop = modelObject.InTheShop, Speed = modelObject.Speed, TransportType = _transportTypeMapper.FromModelToDomain(modelObject.TransportType)
     });
 }