//https://www.youtube.com/watch?v=EZJWubzKA8Y

        public List <Product> findall()
        {
            using (dbMilePointEntities dbcontext = new dbMilePointEntities()) {
                return(dbcontext.ProductEntities.Select(p => new Product {
                    Id = p.Id,
                    Name = p.Name,
                    Price = p.Price.Value,
                    Quantity = p.Quantity.Value
                }).ToList());
            };
        }
 public ServiceProduct(dbMilePointEntities obj)
 {
     this.dbContext = obj;
 }