public void SubmitPurchase(PurchaseVehicle p) { using (_ctx) { try { var newPurchase = _ctx.PurchaseVehicle(p.CarId, p.Name, p.Address1, p.Address2, p.City, p.StateId, p.Zipcode, p.Phone, p.Email, p.IsPurchased, p.PurchasePrice, p.PurchaseTypeId, p.SalesPerson, p.DatePurchasaed); } catch (Exception ex) { throw ex; } } }