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