Esempio n. 1
0
        public async Task <IActionResult> DeleteAnswer(Guid Id, int sequenceNo, int sectionNo, string pageId, Guid answerId, string __redirectAction, string __summaryLink = "False")
        {
            var page = await _qnaApiClient.GetPageBySectionNo(Id, sequenceNo, sectionNo, pageId);

            try
            {
                await _qnaApiClient.RemovePageAnswer(Id, page.SectionId.Value, page.PageId, answerId);
            }
            catch (HttpRequestException ex)
            {
                _logger.LogError($"Page answer removal errored : {ex} ");
            }

            return(RedirectToAction("Page", new { Id, sequenceNo, sectionNo, pageId, __redirectAction, __summaryLink }));
        }