Exemplo n.º 1
0
 private string AddNewExtraValueInts(IEnumerable <int> list)
 {
     foreach (var pid in list)
     {
         if (AddToFamilyRecordInsteadOfPerson)
         {
             Family.AddEditExtraInt(DbUtil.Db, pid, ExtraValueName, ExtraValueInteger);
         }
         else
         {
             Person.AddEditExtraInt(DbUtil.Db, pid, ExtraValueName, ExtraValueInteger);
         }
         DbUtil.Db.SubmitChanges();
         DbUtil.DbDispose();
     }
     return(null);
 }