BExIS.Web.Shell.Areas.BAM.Controllers.PartyController.ConvertDictionaryToPartyCustomeAttrValuesDictionary C# (CSharp) Method

ConvertDictionaryToPartyCustomeAttrValuesDictionary() private method

Conver a simple string,string dictionary to PartyCustomAttribute, string
private ConvertDictionaryToPartyCustomeAttrValuesDictionary ( string>.Dictionary partyCustomAttributes ) : string>.Dictionary
partyCustomAttributes string>.Dictionary
return string>.Dictionary
        private Dictionary<PartyCustomAttribute, string> ConvertDictionaryToPartyCustomeAttrValuesDictionary(Dictionary<string, string> partyCustomAttributes)
        {
            var result = new Dictionary<PartyCustomAttribute, string>();
            foreach (var partyCustomAttribute in partyCustomAttributes)
            {
                result.Add(new PartyCustomAttribute() { Id = int.Parse(partyCustomAttribute.Key) }, partyCustomAttribute.Value);
            }
            return result;
        }