Пример #1
0
        //TODO late
        //we can use this on ajax to prevent page reloading TODO late
        public async Task <IActionResult> DeleteCartItem(int id)
        {
            ResponsViewModel respons = new ResponsViewModel();

            respons = await cartServices.DeleteCartItem(id);


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