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(); }
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); }
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); }
public HomeController() { _factory = new CMSKeywordFactory(); }
public CMSEmployeesController() { _factory = new CMSEmployeeFactory(); _facKeyword = new CMSKeywordFactory(); ViewBag.IsAdmin = CurrentUser.IsSuperAdmin; }