public DeliveryShipment Update(DeliveryShipment entity) { var value = entity; unitOfWork.DeliveryShipmentRepository.Update(value); return(entity); }
public DeliveryShipment Create(DeliveryShipment entity) { var valueToInsert = entity; unitOfWork.DeliveryShipmentRepository.Add(valueToInsert); unitOfWork.SaveTablesChanges("dbo.Delivery_Shipment"); entity.Id = valueToInsert.Id; return(entity); }
private void CreateBtn_OnClick(object sender, RoutedEventArgs e) { if (!ValidateForm()) { return; } var deliveryShipment = new DeliveryShipment(); GoodsInMarket tempGoodsInMarket; deliveryShipment.Id = DeliveryShipmentDtos[^ 1]?.Id + 1 ?? 1;
public void Refresh(DeliveryShipment entity) { unitOfWork.DeliveryShipmentRepository.RefreshEntity(entity); unitOfWork.SaveChanges(); }