/// <summary> /// Gets all the <see cref="EnvironmentViewModel"/>s marked as normal environments in the datastore. /// </summary> /// <returns>A <see cref="ICollection{T}"/> of <see cref="EnvironmentViewModel"/>s.</returns> public ICollection <EnvironmentViewModel> GetEnvironments() { var models = _repository.GetEnvironments(); var output = new List <EnvironmentViewModel>(); var environmentConverter = new EnvironmentConverter(); foreach (var model in models) { output.Add(environmentConverter.To(model)); } return(output); }