protected override FetchResult <EmailSenderDataProviderVM> _fetch(int?Skip, int?Count, NgControllerInstruct[] filters)
 {
     using (var l = new MessagesModuleLogic()) {
         int allQCount;
         var queryResult = l.GetFiltered <tblEmailSenderDataProvider>(Skip, Count, filters, out allQCount)
                           .Select(x => PocoConstructor.MakeFromObj(x, EmailSenderDataProviderVM.tblEmailSenderDataProviderPR));
         return(FetchResult <EmailSenderDataProviderVM> .Succes(queryResult, allQCount));
     }
 }
 protected override FetchResult <MessageReportVM> _fetch(int?Skip, int?Count, NgControllerInstruct[] filters)
 {
     using (var l = new MessagesModuleLogic()) {
         int count;
         var queryResult = l.GetFiltered <tblMessage>(Skip, Count, filters, out count)
                           .Select(x => PocoConstructor.MakeFromObj(x, MessageReportVM.tblMessagePR));
         return(FetchResult <MessageReportVM> .Succes(queryResult, count));
     }
 }
 protected override FetchResult <RecepientcardVM> _fetch(int?Skip, int?Count, NgControllerInstruct[] filters)
 {
     using (var l = new MessagesModuleLogic()) {
         int fullQueryCount;
         var queryResult = l.GetFiltered <tblRecepientCard>(Skip, Count, filters, out fullQueryCount)
                           .Select(x => PocoConstructor.MakeFromObj(x, RecepientcardVM.tblRecepientCardPR));
         return(FetchResult <RecepientcardVM> .Succes(queryResult, fullQueryCount));
     }
 }
Ejemplo n.º 4
0
        protected override FetchResult <FilterVM> _fetch(int?Skip, int?Count, NgControllerInstruct[] filters)
        {
            IEnumerable <FilterVM> filts;
            int allQueryCount;

            using (var l = new MessagesModuleLogic()) {
                var result = l.GetFiltered <tblFilter>(Skip, Count, filters, out allQueryCount);
                filts = result.Select(x => PocoConstructor.MakeFromObj(x, sqllogic, FilterVM.tblFilterPR)).ToArray();
            }

            return(FetchResult <FilterVM> .Succes(filts, allQueryCount));
        }