コード例 #1
0
        public async Task <IActionResult> Delete(DeleteViewModel model)
        {
            var result = await _faqGroupRepository.DeleteAsync(model.Id);

            TempData.AddResult(result);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public async Task <IActionResult> Delete(DeleteViewModel model)
        {
            var result = await _faqGroupRepository.DeleteAsync(model.Id);

            TempData.AddResult(result);

            return(Redirect(IndexUrlWithQueryString));
        }