public async Task <IActionResult> Delete(DeleteViewModel model) { var result = await _faqGroupRepository.DeleteAsync(model.Id); TempData.AddResult(result); return(RedirectToAction("Index")); }
public async Task <IActionResult> Delete(DeleteViewModel model) { var result = await _faqGroupRepository.DeleteAsync(model.Id); TempData.AddResult(result); return(Redirect(IndexUrlWithQueryString)); }