/// <inheritdoc/> public void SetPurposes(ICaller caller) { using IDealData data = InstanceFactory.GetInstance <IDealData>(); if (data.AnySetPurpose()) { return; } IDictionary <string, string> setPurposeDetails = new Dictionary <string, string> { { "TEACHING", "Teaching" }, { "EVENTS", "Events" } }; foreach (KeyValuePair <string, string> setPurposeDetail in setPurposeDetails) { ISetPurpose setPurpose = new SetPurpose( id: Guid.NewGuid(), code: setPurposeDetail.Key, name: setPurposeDetail.Value); data.CreateSetPurpose(setPurpose); } }