public List <ConsortiumSecure> GetAll() { var secure = ConsortiumSecureRepository.GetAll(); if (secure == null) { throw new BadRequestException(ErrorMessages.UserNoEncontrado); } var result = new List <ConsortiumSecure>(); var enumerator = secure.GetEnumerator(); while (enumerator.MoveNext()) { result.Add(enumerator.Current); } return(result); }
public List <ConsortiumSecure> GetAll() { return(ConsortiumSecureRepository.GetAll().ToList()); }