Пример #1
0
        public async Task <IActionResult> DeleteFile(Guid Id, int sequenceNo, Guid sectionId, string pageId, string questionId, string filename, string __redirectAction)
        {
            var section = await _qnaApiClient.GetSection(Id, sectionId);

            await _qnaApiClient.DeleteFile(Id, section.Id, pageId, questionId, filename);

            return(RedirectToAction("Page", new { Id, sequenceNo, section.SectionNo, pageId, __redirectAction }));
        }
        public async Task <IActionResult> DeleteFile(Guid Id, int sequenceNo, int sectionId, string pageId, string questionId, string filename, string __redirectAction)
        {
            var selectedSection = await _qnaApiClient.GetSectionBySectionNo(Id, sequenceNo, sectionId);

            await _qnaApiClient.DeleteFile(Id, selectedSection.Id, pageId, questionId, filename);

            return(RedirectToAction("Page", "RoatpApplication", new { applicationId = Id, sequenceId = sequenceNo, sectionId, pageId, redirectAction = __redirectAction }));
        }