public EmployeeDto[] GetByIds(Guid[] ids)
 {
     try
     {
         using (var transactionScope = new TransactionScope())
         {
             var employeeDtos = new EmployeeDtoMapper().Map(_employeeRepository.GetByIds(ids.ToList()).ToArray());
             transactionScope.Complete();
             return employeeDtos;
         }
     }
     finally
     {
         _sessionProvider.CloseCurrent();
     }
 }
 public EmployeeDto GetById(Guid id)
 {
     try
     {
         using (var transactionScope = new TransactionScope())
         {
             var employeeDtos = new EmployeeDtoMapper().Map(_employeeRepository.GetById(id));
             transactionScope.Complete();
             return employeeDtos;
         }
     }
     finally
     {
         _sessionProvider.CloseCurrent();
     }
 }
 public EmployeeDto[] GetCurrentByDepartmentId(Guid departmentId)
 {
     try
     {
         using (var transactionScope = new TransactionScope())
         {
             var employeeDtos = new EmployeeDtoMapper().Map(_employeeRepository.GetCurrentByDepartmentId(departmentId).ToArray());
             transactionScope.Complete();
             return employeeDtos;
         }
     }
     finally
     {
         _sessionProvider.CloseCurrent();
     }
 }