Esempio n. 1
0
 public void AddDepartments(IEnumerable <Department> depts)
 {
     using (TransactionScope tran = new TransactionScope()) {
         Departments.AddRange(depts);
         //   Complete();
         tran.Complete();
     }
 }
 public void AddRange(IEnumerable <Department> entities)
 {
     _departmentrepository.AddRange(entities);
 }