public override void OnActionExecuting(ActionExecutingContext context) { FTISFactory m_FTISFactory = new FTISFactory(); IFTISService m_FTISService = m_FTISFactory.GetFTISService(); IDictionary <string, string> conditions = new Dictionary <string, string>(); if (OnlyOpen) { conditions.Add("Status", "1"); } IList <GreenFactoryClass> GreenFactoryClassList = m_FTISService.GetGreenFactoryClassList(conditions); context.Controller.ViewData["GreenFactoryClassList"] = GreenFactoryClassList; }
private IEnumerable <GreenFactoryClass> GetGridData() { IList <GreenFactoryClass> datasource = m_FTISService.GetGreenFactoryClassList(m_Conditions); return(datasource); }