foreach (var eachProfileUri in AllAssociatedProfileUrisList) { var eachProfileData = CallRestApi("https://" + con.oneViewIP + eachProfileUri, "GET", con.sessionID, con.xApiVersionString); var data = eachProfileData["enclosureUri"]; var enclosuredetails = CallRestApi("https://" + con.oneViewIP + data, "GET", con.sessionID, con.xApiVersionString); if (enclosuredetails["enclosureType"].ToString() != "C7000") { associatedprofileSetList.Add(eachProfileData["name"].ToString()); } else if (enclosuredetails["enclosureType"].ToString() != "SY12000") { associatedprofileSetList.Add(eachProfileData["name"].ToString()); } } if (associatedprofileSetList.Count() > 0) { //associatedprofileSetList.OrderByDescending(x => x.Product.Name).ToList(); var assoProfileset = String.Join(",", associatedprofileSetList); NetworkDict.Add(property, assoProfileset); }
if (associatedprofileSetList.Count() > 0) { //associatedprofileSetList.OrderByDescending(x => x.Product.Name).ToList(); var assoProfileset = String.Join(",", associatedprofileSetList.OrderByDescending(x => x.Product.Name).ToList()); NetworkDict.Add(property, assoProfileset); }
associatedprofileSetList = associatedprofileSetList.OrderByDescending(x => x.Product.Name).ToList();
List<string> sorted = associatedprofileSetList.OrderbyDescending(a => a).ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)