Models: Add IDelivery for DeliveryParts

This commit is contained in:
2024-03-27 16:04:47 +01:00
parent a04f887b4d
commit cac0959fe7
3 changed files with 10 additions and 2 deletions

View File

@ -26,6 +26,7 @@ using MimeKit;
using System.Windows.Input;
using LinqKit;
using System.Linq.Expressions;
using Elwig.Models;
namespace Elwig.Helpers {
public static partial class Utils {
@ -326,7 +327,7 @@ namespace Elwig.Helpers {
> 0 => "+",
};
public static double AggregateDeliveryPartsKmw(IEnumerable<DeliveryPart> parts)
public static double AggregateDeliveryPartsKmw(IEnumerable<IDelivery> parts)
=> parts.Aggregate(
(Weight: 0, Kmw: 0.0),
(sum, item) => (