Example #1
0
 private static void AutoCrawlAll()
 {
     try
     {
         var keyFac = new CMSKeywordFactory();
         var msg    = "";
         keyFac.CrawlAllKeyWords("AutoCrawlAll", ref msg);
     }
     catch (Exception ex) { };
 }
        public CMSKeywordsController()
        {
            _factory = new CMSKeywordFactory();
            ListItem = new List <string>();
            //ListItem = _factory.GetList().Select(o=>o.KeySearch).ToList();
            var lstItem = _factory.GetList();

            if (lstItem != null)
            {
                ListItem = lstItem.Select(o => o.KeySearch).ToList();
            }

            ViewBag.ListGroupKey = getListGroupKeyword();
        }
Example #3
0
        public List <string> getListKeyWordByGroup(string GroupId)
        {
            var _fac      = new CMSKeywordFactory();
            var data      = _fac.GetList(GroupId);
            var lstString = new List <string>();

            if (data != null && data.Any())
            {
                foreach (var item in data)
                {
                    lstString.Add(item.Id);
                }
            }
            return(lstString);
        }
Example #4
0
        public List <SelectListItem> getListKeyword()
        {
            var _fac       = new CMSKeywordFactory();
            var _facGroup  = new CMSGroupKeywordsFactory();
            var data       = _fac.GetList();
            var lstKeyword = new List <SelectListItem>();

            if (data != null && data.Any())
            {
                foreach (var item in data)
                {
                    lstKeyword.Add(new SelectListItem
                    {
                        Value = item.Id,
                        Text  = item.KeySearch
                    });
                }
            }
            return(lstKeyword);
        }
Example #5
0
 public HomeController()
 {
     _factory = new CMSKeywordFactory();
 }
Example #6
0
 public CMSEmployeesController()
 {
     _factory        = new CMSEmployeeFactory();
     _facKeyword     = new CMSKeywordFactory();
     ViewBag.IsAdmin = CurrentUser.IsSuperAdmin;
 }