/// <summary>
 /// Zapisuje zmiany dokonane w widoku.
 /// </summary>
 public async void Save()
 {
     if (Package.Status == PackageStatus.InWarehouse && SelectedEmployee != null)
     {
         await packagesService.AssignPackage(Package.Id, SelectedEmployee.Id);
     }
     else if (Package.Status == PackageStatus.InDelivery && IsDelivered)
     {
         await packagesService.MarkAsDelivered(Package.Id);
     }
     TryClose(true);
 }
        public async void Delivered(PackageDto package)
        {
            await service.MarkAsDelivered(package.Id);

            UpdateData();
        }