public async Task <IActionResult> Delete(long id) { try { await _departementSerivce.Delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }