예제 #1
0
 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);
     }
 }