public IEnumerable <CodecInformationViewModel> GetAll() { var registeredUserAgents = _registeredSipRepository.GetRegisteredUserAgentsCodecInformation(); return(registeredUserAgents.Select(x => { return new CodecInformationViewModel( sipAddress: x.SipAddress, ip: x.Ip, api: x.Api, gpoNames: x.GpoNames, nrOfInputs: x.NrOfInputs, nrOfGpos: x.NrOfGpos); }).ToList()); }
public IEnumerable <RegisteredUserAgentCodecInformation> GetRegisteredUserAgentsCodecInformation() { return(_lazyCache.GetOrAddRegisteredUserAgentsCodecInformation(() => _internalRepository.GetRegisteredUserAgentsCodecInformation())); }