public override Sys_PageIndex FindEntity(object keyValue) { Sys_PageIndex entity = base.FindEntity(keyValue); entity.LstSys_PageIndexSearchs = DM.Tools.Web.AutofacContainer.Resolve <ISys_PageIndexSearchRepository>().IQueryable(p => p.F_PageIndexF_ID == keyValue).OrderBy(p => p.F_Sort).ToList(); entity.LstSys_PageIndexTableColumnss = DM.Tools.Web.AutofacContainer.Resolve <ISys_PageIndexTableColumnsRepository>().IQueryable(p => p.F_PageIndexF_ID == keyValue).OrderBy(p => p.F_Sort).ToList(); entity.LstSys_PageIndexTools = DM.Tools.Web.AutofacContainer.Resolve <ISys_PageIndexToolRepository>().IQueryable(p => p.F_PageIndexF_ID == keyValue).OrderBy(p => p.F_Sort).ToList(); return(entity); }
public virtual ActionResult Index(string modelid = null) { if (!string.IsNullOrEmpty(modelid)) { Sys_PageIndex items = AutofacContainer.Resolve <ISys_PageIndexService>().FindEntity(modelid); ViewBag.PageConfig = items; } return(View()); }