/// public override async Task Save() { IsBusy = true; try { foreach (var aspect in Aspects.Items.Cast <IResourceAspect>()) { await aspect.Save(); } var updated = await ResourceServiceModel.SaveResource(EditableObject.Model); EditableObject.UpdateModel(updated); } catch { //TODO throw; } finally { IsBusy = false; } }
/// public override async Task Save() { IsBusy = true; try { foreach (var aspect in Aspects.Items.Cast <IProductAspect>()) { await aspect.Save(); } var updated = await ProductServiceModel.SaveProduct(EditableObject.Model); EditableObject.UpdateModel(updated); } catch { throw; } finally { IsBusy = false; } }