public async Task <IActionResult> DeleteConfirmed(int id) { var productViewModel = await _ds.SingleAsync(id); _ds.Remove(productViewModel); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> DeleteConfirmed(int id) { var productViewModel = await _ds.SingleAsync(id); _ds.Remove(productViewModel); return(RedirectToAction(nameof(Index))); }