public void EditVehicle(Vehicle editCar) { Car newCar = new Car(); using (_ctx = new GuildCarsEntities()) { try { _ctx.EditVehicle(editCar.CarId, editCar.Year, editCar.CarMakeId, editCar.CarModelId, editCar.CarTypeId, editCar.BodyStyleId, editCar.TransmissionId, editCar.ColorId, editCar.InteriorId, editCar.Mileage, editCar.VINnumber, editCar.SalePrice, editCar.MSRP, editCar.CarDescription, editCar.ImageFileName, editCar.IsFeatured, editCar.IsPurchased); } catch (Exception ex) { throw ex; } } }