Esempio n. 1
0
        public IEnumerable <T> MediateBusinessDataConsult <T>(object sender, string[] conditions)
        {
            BusinessConsultEventArgs args = new BusinessConsultEventArgs(typeof(T))
            {
                businessConsultType = BusinessConsultType.GetBy, conditions = conditions
            };

            BusinessConsultNeed(sender, args);
            return((IEnumerable <T>)args.result);
        }
Esempio n. 2
0
        public IEnumerable <T> MediateBusinessDataConsult <T>(object sender, int entityId)
        {
            BusinessConsultEventArgs args = new BusinessConsultEventArgs(typeof(T))
            {
                businessConsultType = BusinessConsultType.Get, entityId = entityId
            };

            BusinessConsultNeed(sender, args);
            return((IEnumerable <T>)args.result);
        }