常用方法
常用方法
常用方法
常用方法
public LeadDto[] GetByIds(Guid[] ids) { try { using (var transactionScope = new TransactionScope()) { var employeeDtos = new LeadDtoMapper().Map(_leadRepository.GetByIds(ids.ToList()).ToArray()); transactionScope.Complete(); return(employeeDtos); } } finally { _sessionProvider.CloseCurrent(); } }