public static string GetRemovePostingWarningFromPostingJournalResultUrl(this PostingWarningViewModel postingWarningViewModel, IUrlHelper urlHelper, int accountingNumber)
        {
            NullGuard.NotNull(postingWarningViewModel, nameof(postingWarningViewModel))
            .NotNull(urlHelper, nameof(urlHelper));

            return(urlHelper.AbsoluteAction("RemovePostingWarningFromPostingJournalResult", "Accounting", new { accountingNumber, postingWarningIdentifier = postingWarningViewModel.Identifier }));
        }
        public static string GetRemovePostingWarningFromPostingJournalResultData(this PostingWarningViewModel postingWarningViewModel, IHtmlHelper htmlHelper, string postingJournalResultKey)
        {
            NullGuard.NotNull(postingWarningViewModel, nameof(postingWarningViewModel))
            .NotNull(htmlHelper, nameof(htmlHelper))
            .NotNullOrWhiteSpace(postingJournalResultKey, nameof(postingJournalResultKey));

            StringBuilder removePostingWarningFromPostingJournalResultDataBuilder = new StringBuilder();

            removePostingWarningFromPostingJournalResultDataBuilder.Append("{");
            removePostingWarningFromPostingJournalResultDataBuilder.Append($"postingJournalResultKey: '{postingJournalResultKey}', ");
            removePostingWarningFromPostingJournalResultDataBuilder.Append(htmlHelper.AntiForgeryTokenToJsonString());
            removePostingWarningFromPostingJournalResultDataBuilder.Append("}");

            return(removePostingWarningFromPostingJournalResultDataBuilder.ToString());
        }