示例#1
0
        public async Task <IActionResult> Delete(int Id)
        {
            var result = await _newsGroupRepository.DeleteAsync(Id);

            TempData.AddResult(result);

            return(RedirectToAction("Index"));
        }
示例#2
0
        public async Task <IActionResult> Delete(int Id)
        {
            var result = await _newsGroupRepository.DeleteAsync(Id);

            TempData.AddResult(result);

            return(Redirect(IndexUrlWithQueryString));
        }