protected async Task AddConfirmedCakeMark() { Error.ErrorMessage = null; var result = await this.CakeMarkService.AddCakeMark(CakeMarkBoard.CakeMarkGridData.LatestEventDate); await JSRuntime.HideModal("addCakeMarkModal"); if (!result.Success) { Error.ErrorMessage = result.GetStatusMessage(AddCakeMarkFailedMessage); } else { await ToastService.ShowToast(AddCakeMarkSuccessMessage); } await CakeMarkTally.Refresh(); await SuperCakeMarkTally.Refresh(); await CakeMarkBoard.Refresh(); }
protected async Task RemoveSuperCakeMark() { Error.ErrorMessage = null; if (SuperCakeMarkTally.CakeMarkTally == 0) { return; } var result = await this.CakeMarkService.RemoveSuperCakeMark(CakeMarkBoard.CakeMarkGridData.LatestEventDate); if (!result.Success) { Error.ErrorMessage = result.GetStatusMessage(RemoveCakeMarkFailedMessage); } else { await ToastService.ShowToast(RemoveSuperCakeMarkSuccessMessage); } await SuperCakeMarkTally.Refresh(); await CakeMarkBoard.Refresh(); }