in function BuyProduct that is in UserController
this function just take the name of product and the quantity that want to buy and i suggest that is wrong because should view all details of the product and when he choose the product and quantity this quantity decease from the total quantity that is stored in the database
in function BuyProduct that is in UserController this function just take the name of product and the quantity that want to buy and i suggest that is wrong because should view all details of the product and when he choose the product and quantity this quantity decease from the total quantity that is stored in the database