Exemple #1
0
        private Guid TitleIntegration(string _title)
        {
            ITitleService _Titleservice = DependencyResolver.Current.GetService <ITitleService>();

            if (!_Titleservice.Contains(x => x.TitleName == _title))
            {
                _Titleservice.SaveDomain(new TitleTable()
                {
                    TitleName = _title, isIntegratedLDAP = true
                }, "Admin");
            }

            TitleTable titleTable = _Titleservice.FirstOrDefault(x => x.TitleName == _title);

            return(titleTable == null ? Guid.Empty : titleTable.Id);
        }