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