Esempio n. 1
0
 public async Task <ProductItem> DeleteProductItemAsync(int id)
 {
     return(await _productItemRepository.DeleteAsync(id));
 }
Esempio n. 2
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            await _productItemRepository.DeleteAsync(id);

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