예제 #1
0
        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;
        }
예제 #2
0
 private string GetStringAttributeValue(UsfFacultyProfileAttribute attribute)
 {
     return(Integration.StringAttributes
            .Where(x => x.Name.Equals(attribute.ToString()))
            .Select(x => x.Value).SingleOrDefault());
 }