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