public void AddProduct(Products product) { using (var customerContext = new CustomerAppContext()) { customerContext.Add(product); customerContext.SaveChanges(); } }