예제 #1
0
        public async Task <IActionResult> AddToCart(int id)
        {
            if (await _customerServices.AddToCart(id, User.Identity !.Name))
            {
                return(RedirectToAction("Index"));
            }

            return(BadRequest());
        }