protected void Commit(TaxCalculatorModelContainer context) { context.SaveChanges(); }
private static void SetAllIndicatorsDefaultValue(TaxCalculatorModelContainer context, Indicator entity) { if (entity.IsDefault) { var allIntems = context.Indicators.ToList(); //set everything as notDefault allIntems.ForEach(p => p.IsDefault = false); } }