public async Task <IActionResult> Delete(int id, CategoryViewModel cateItem) { if (cateItem != null) { await _categoryViewModelService.DeleteCategoryAsync(id); return(RedirectToAction(nameof(Index))); } return(View()); }
public async Task <IActionResult> Delete(int id, CategoryViewModel cateItem) { if (cateItem != null) { await _categoryViewModelService.DeleteCategoryAsync(id); return(RedirectToAction(nameof(Index))); } return(View()); }