コード例 #1
0
        public async Task <IActionResult> Delete(long id)
        {
            try
            {
                await _departementSerivce.Delete(id);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }