示例#1
0
 public void CreateATM(ATMCreateRequest atm)
 {
     _dbContext.ATMs.Add(_mapper.Map <ATM>(atm));
     _dbContext.SaveChanges();
 }
示例#2
0
 public void CreateAtmModule(AtmModuleRequest atmModule)
 {
     _dbContext.AtmModules.Add(_mapper.Map <AtmModule>(atmModule));
     _dbContext.SaveChanges();
 }
示例#3
0
 public void CreateATMBattery(ATMBatteryCreateRequest battery)
 {
     _dbContext.AtmBatteries.Add(_mapper.Map <ATMBattery>(battery));
     _dbContext.SaveChanges();
 }