예제 #1
0
        public OrganizationExtra GetExtraValue(string field)
        {
            var ev = OrganizationExtras.AsEnumerable().FirstOrDefault(ee => string.Compare(ee.Field, field, ignoreCase: true) == 0);

            if (ev == null)
            {
                ev = new OrganizationExtra()
                {
                    OrganizationId = OrganizationId,
                    Field          = field,
                };
                OrganizationExtras.Add(ev);
            }
            return(ev);
        }
예제 #2
0
        public OrganizationExtra GetExtraValue(string field)
        {
            var ev = OrganizationExtras.AsEnumerable().FirstOrDefault(ee => ee.Field.Equal(field));

            if (ev == null)
            {
                ev = new OrganizationExtra()
                {
                    OrganizationId = OrganizationId,
                    Field          = field,
                };
                OrganizationExtras.Add(ev);
            }
            return(ev);
        }