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