public async Task <ProductItem> DeleteProductItemAsync(int id) { return(await _productItemRepository.DeleteAsync(id)); }
public async Task <IActionResult> DeleteConfirmed(int id) { await _productItemRepository.DeleteAsync(id); return(RedirectToAction(nameof(Index))); }