protected async Task RemoveCakeMark() { Error.ErrorMessage = null; var result = await this.CakeMarkService.RemoveCakeMark(CakeMarkBoard.CakeMarkGridData.LatestEventDate); if (!result.Success) { Error.ErrorMessage = result.GetStatusMessage(RemoveCakeMarkFailedMessage); } else { await ToastService.ShowToast(RemoveCakeMarkSuccessMessage); } await CakeMarkTally.Refresh(); await CakeMarkBoard.Refresh(); }
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(); }