private void SetStringAttributeValue(UsfFacultyProfileAttribute attribute, string value) { var entity = Integration.StringAttributes.SingleOrDefault(x => x.Name.Equals(attribute.ToString())); if (entity == null) { entity = new ServiceStringAttribute { Name = attribute.ToString(), TenantId = Integration.TenantId, IntegrationName = Integration.Name, }; Integration.StringAttributes.Add(entity); } entity.Value = value; }
private string GetStringAttributeValue(UsfFacultyProfileAttribute attribute) { return(Integration.StringAttributes .Where(x => x.Name.Equals(attribute.ToString())) .Select(x => x.Value).SingleOrDefault()); }