Example #1
0
 private string AddNewExtraValueDates(IEnumerable <int> list)
 {
     foreach (var pid in list)
     {
         if (AddToFamilyRecordInsteadOfPerson)
         {
             Family.AddEditExtraDate(DbUtil.Db, pid, ExtraValueName, ExtraValueDate);
         }
         else
         {
             Person.AddEditExtraDate(DbUtil.Db, pid, ExtraValueName, ExtraValueDate);
         }
         DbUtil.Db.SubmitChanges();
         DbUtil.DbDispose();
     }
     return(null);
 }