예제 #1
0
        public async Task Delete()
        {
            await IngredientFacade.DeleteAsync(Id);

            if (OnModification.HasDelegate)
            {
                await OnModification.InvokeAsync(null);
            }
        }
예제 #2
0
        public async Task Save()
        {
            var resultId = await IngredientFacade.SaveAsync(Data);

            if (OnModification.HasDelegate)
            {
                await OnModification.InvokeAsync(resultId);
            }
            Data = new IngredientDetailModel();
        }