private void Child_Fetch(FillupDto item) { Id = item.Id; CarId = item.CarId; FillupDate = item.FillUpDate.ToShortDateString(); Amount = $"{item.Amount} L"; Odometer = $"{item.Odometer} Km"; TotalCost = $"SEK {Math.Round(item.Amount * item.VolumePrice, 2)}"; DaysSinceLast = item.DaysSinceLast == 0 ? string.Empty : $"(+ {item.DaysSinceLast} days)"; DistanceSinceLast = item.DaysSinceLast == 0 ? string.Empty : $"+ {item.DistanceSinceLast} Km"; AverageConsumption = item.AverageConsumption == 0 ? string.Empty : $"{Math.Round(item.AverageConsumption, 2)} L/100 Km"; VolumePrice = $"SEK {Math.Round(item.VolumePrice, 2)}/L"; PartialFillup = item.PartialFillUp; Note = item.Note; }
public void Update(FillupDto data) { throw new NotImplementedException(); }
public void Insert(FillupDto data) { throw new NotImplementedException(); }