public void SaveDeliveryGradeSize(DeliveryGradeSizeDTO deliveryGradeSizeDTO)
        {
            var deliveryGradeSize = new DeliveryGradeSize()
            {
                DeliveryId = deliveryGradeSizeDTO.DeliveryId,
                GradeId    = deliveryGradeSizeDTO.GradeId,
                SizeId     = deliveryGradeSizeDTO.SizeId,
                Amount     = deliveryGradeSizeDTO.Amount,
                Price      = deliveryGradeSizeDTO.Price,
                Quantity   = deliveryGradeSizeDTO.Quantity,
                TimeStamp  = DateTime.Now
            };

            this.UnitOfWork.Get <DeliveryGradeSize>().AddNew(deliveryGradeSize);
            this.UnitOfWork.SaveChanges();
        }
Beispiel #2
0
 void SaveDeliveryGradeSize(DeliveryGradeSizeDTO deliveryGradeSizeDTO)
 {
     _dataService.SaveDeliveryGradeSize(deliveryGradeSizeDTO);
 }