// create public void CreateVehicleMake(VehicleMake vehicleMake) { db.VehicleMake.Add(Mapper.Map <VehicleMake>(vehicleMake)); db.SaveChanges(); }
public void InsertVehicleMake(VehicleMake make) { _context.VehicleMakes.Add(make); _context.SaveChanges(); }
public void CreateMake(VehicleMakeVM VehicleMakeVM) { VehicleMakeVM.Id = Guid.NewGuid(); db.VehiclMakes.Add(Mapper.Map <VehicleMake>(VehicleMakeVM)); db.SaveChanges(); }