public void UpdateSettings(string bettingThreshold2A, string bettingThreshold3A, string bettingThreshold4A) { string BettingThreshold2A = togelContext.Settings.Find(1).SettingValue; string BettingThreshold3A = togelContext.Settings.Find(2).SettingValue; string BettingThreshold4A = togelContext.Settings.Find(3).SettingValue; if (BettingThreshold2A != bettingThreshold2A) { Setting setting = togelContext.Settings.Find(1); setting.SettingValue = bettingThreshold2A; } if (BettingThreshold3A != bettingThreshold3A) { Setting setting = togelContext.Settings.Find(2); setting.SettingValue = bettingThreshold3A; } if (BettingThreshold4A != bettingThreshold4A) { Setting setting = togelContext.Settings.Find(3); setting.SettingValue = bettingThreshold4A; } togelContext.SaveChanges(); }
public void InsertTransaction(Transaction entity) { togelContext.Transactions.Add(entity); togelContext.SaveChanges(); }
public void InserTodayNumber(Nomor nomor) { togelContext.Nomors.Add(nomor); togelContext.SaveChanges(); }