public async void LoadOrderArchiveAsync()
        {
            var orderArchive = await PersistencyServiceOrderArchive.LoadOrderArchiveFromJsonAsync();

            OrderArchive.Clear();

            if (orderArchive != null)
            {
                foreach (var orders in orderArchive)
                {
                    OrderArchive.Add(orders);
                }
            }
            else
            {
                OrderArchive.Add(new Order("Gammel Ordre", "12/10-2018", "Nej", "Den her lavede vi sidste år"));
            }
        }
 public void AddOrderToArchive(Order ordersToArchive)
 {
     OrderArchive.Add(ordersToArchive);
     PersistencyServiceOrderArchive.SaveOrderArchiveAsJsonAsync(OrderArchive);
 }
 public void RemoveOrderFromArchive(Order orderToBeRemoved)
 {
     OrderArchive.Remove(orderToBeRemoved);
     PersistencyServiceOrderArchive.SaveOrderArchiveAsJsonAsync(OrderArchive);
 }
 public void AddOrderToArchive(string orderName, string deadline, string delivery, string commentary)
 {
     OrderArchive.Add(new Order(orderName, deadline, delivery, commentary));
     PersistencyServiceOrderArchive.SaveOrderArchiveAsJsonAsync(OrderArchive);
 }