public void Add(Product product)
        {
            var _context = new ProductsContext();

            _context.Products.Add(product);
            _context.SaveChanges();
        }
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }