public ItemCart(int id) { using (BussinessEntities db = new BussinessEntities()) { this.ID = id; Product product = db.Products.Single(n => n.ID == id); this.Name = product.Name; this.Price = product.Price.Value; this.Amount = 1; this.TotalMoney = Price * Amount; this.Image = product.Image; } }