public IActionResult DeleteUrgency(int id) { var model = _urgencyService.GetById(id); if (model != null) { _urgencyService.Delete(model); return(RedirectToAction("Index")); } return(RedirectToAction("Index")); }