public IHttpActionResult GetList(SiteSearch search) { AuthDetails authdet = LoginUserDetails(); var filters = new List <MySqlParameter> { datatableService.CreateSqlParameter("@pUserId", authdet.UserId, MySqlDbType.Int32) }; var result = service.GetList(search, filters); return(Ok(result)); }
public DataTable <SiteDatatable> GetList(SiteSearch search, List <MySqlParameter> filters) { try { using (var ctx = new AppDb()) { var result = datatableService.GetDataTableResult <SiteDatatable>("site_list_sp", search, filters); return(result); } } catch (Exception ex) { throw ex; } }
static void initSiteSearch(string sitePath) { if (_SiteSearch == null) { lock (loc) if (_SiteSearch == null) { SearchIndexer searchIndexer = Ingeniux.Search.SearchIndexer.Get(RuntimeLogger.GetLogger(sitePath)); _SiteSearch = new SiteSearch(searchIndexer.Logger); System.Web.HttpContext.Current.Application["SiteSearch"] = _SiteSearch; //start indexing service, use runtime logger searchIndexer.Start(_SiteSearch); } } }
public ActionResult Default(FormCollection model) { _page = PagePayload.GetCurrentContent(); Object frm = null; if (Request.Form["form_type"] != null) { string formMode = Request.Form["form_type"].ToString().ToLower(); if (formMode == "searchform") { frm = new SiteSearch(); frm = FormHelper.ParseRequest(frm, Request); this.ViewData["CMS_searchform"] = frm; if (frm != null) { this.TryValidateModel(frm); } } if (formMode == "contactform") { frm = new ContactInfo(); frm = FormHelper.ParseRequest(frm, Request); var cmt = (ContactInfo)frm; cmt.Root_ContentID = _page.ThePage.Root_ContentID; cmt.CreateDate = SiteData.CurrentSite.Now; cmt.CommenterIP = Request.ServerVariables["REMOTE_ADDR"]; this.ViewData[ContactInfo.Key] = frm; if (cmt != null) { this.TryValidateModel(cmt); } } } return(DefaultView()); }
public DummySearchSource(IndexingSourceEntryConfig entryConfig, SiteSearch siteSearch, Logger logger) : base(entryConfig, siteSearch, logger) { }