public async Task <ActionResult <UserManagerResponse> > removeFromCart(int productId) { var userId = User.FindFirst(ClaimTypes.NameIdentifier).Value; if (User != null) { var result = _CartRepo.removeItem(userId, productId); return(result); } return(new UserManagerResponse { IsSuccessful = false, Message = "" }); }