Exemple #1
0
        // GET: Orders/Delete/5
        public async Task<IActionResult> Delete(int id)
        {
            try
            {
                await _orders.DeleteAsync(id);

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