public async Task Delete() { await IngredientFacade.DeleteAsync(Id); if (OnModification.HasDelegate) { await OnModification.InvokeAsync(null); } }
public async Task Save() { var resultId = await IngredientFacade.SaveAsync(Data); if (OnModification.HasDelegate) { await OnModification.InvokeAsync(resultId); } Data = new IngredientDetailModel(); }