public virtual async Task DeleteShipmentNote(Shipment shipment, string id) { var shipmentNote = (await _shipmentService.GetShipmentNotes(shipment.Id)).FirstOrDefault(on => on.Id == id); if (shipmentNote == null) { throw new ArgumentException("No shipment note found with the specified id"); } shipmentNote.ShipmentId = shipment.Id; await _shipmentService.DeleteShipmentNote(shipmentNote); }