Ejemplo n.º 1
0
        private List <AsteriskIVRStep> LoadUserDefinitionForIVR(string extention)
        {
            var repository    = new EFAsteriskIVRDefinitionRepository("Data Source=.\\SQLEXPRESS; Initial Catalog=ccrm_db; Integrated Security=True;");
            var IVRDefinition = repository.SearchFor(a => a.Extention == extention).FirstOrDefault();

            if (IVRDefinition != null)
            {
                return(IVRDefinition.AsteriskIVRSteps.ToList());
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
 private List<AsteriskIVRStep> LoadUserDefinitionForIVR(string extention)
 {
     var repository = new EFAsteriskIVRDefinitionRepository("Data Source=.\\SQLEXPRESS; Initial Catalog=ccrm_db; Integrated Security=True;");
     var IVRDefinition = repository.SearchFor(a => a.Extention == extention).FirstOrDefault();
     if (IVRDefinition != null)
     {
         return IVRDefinition.AsteriskIVRSteps.ToList();
     }
     else
         return null;
 }