コード例 #1
0
        public async Task <IActionResult> Delete(int id, CategoryViewModel cateItem)
        {
            if (cateItem != null)
            {
                await _categoryViewModelService.DeleteCategoryAsync(id);

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