public void DoImport(Stream backupStream, Action <ExportImportProgressInfo> progressCallback)
        {
            var backupObject = backupStream.DeserializeJson <BackupObject>();

            progressCallback(new ExportImportProgressInfo("importing currencies"));
            if (backupObject.Currencies != null)
            {
                _commerceService.UpsertCurrencies(backupObject.Currencies);
            }
            progressCallback(new ExportImportProgressInfo("importing package types"));
            if (backupObject.PackageTypes != null)
            {
                _commerceService.UpsertPackageTypes(backupObject.PackageTypes);
            }
        }
 public IHttpActionResult UpdatePackageType(coreModel.PackageType packageType)
 {
     _commerceService.UpsertPackageTypes(new[] { packageType });
     return(StatusCode(HttpStatusCode.NoContent));
 }
 public void UpsertPackageTypes(PackageType[] packageTypes)
 {
     _commerceService.UpsertPackageTypes(packageTypes);
 }