Пример #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var lineItem = await _context.GetLineItem(id);

            await _context.DeleteLineItem(lineItem);

            return(RedirectToAction("Active", "Carts", new { userID = _userManager.GetUserId(User) }));
        }