Beispiel #1
0
        public DeliveryShipment Update(DeliveryShipment entity)
        {
            var value = entity;

            unitOfWork.DeliveryShipmentRepository.Update(value);
            return(entity);
        }
Beispiel #2
0
        public DeliveryShipment Create(DeliveryShipment entity)
        {
            var valueToInsert = entity;

            unitOfWork.DeliveryShipmentRepository.Add(valueToInsert);
            unitOfWork.SaveTablesChanges("dbo.Delivery_Shipment");
            entity.Id = valueToInsert.Id;
            return(entity);
        }
Beispiel #3
0
        private void CreateBtn_OnClick(object sender, RoutedEventArgs e)
        {
            if (!ValidateForm())
            {
                return;
            }
            var           deliveryShipment = new DeliveryShipment();
            GoodsInMarket tempGoodsInMarket;

            deliveryShipment.Id               = DeliveryShipmentDtos[^ 1]?.Id + 1 ?? 1;
Beispiel #4
0
 public void Refresh(DeliveryShipment entity)
 {
     unitOfWork.DeliveryShipmentRepository.RefreshEntity(entity);
     unitOfWork.SaveChanges();
 }