Exemplo n.º 1
0
 protected override FetchResult <RFilterTableVM> _fetch(int?Skip, int?Count, NgControllerInstruct[] filters)
 {
     using (var l = new MessagesModuleLogic()) {
         var items = l.GetAll <tblRecepientFilterTableName>().Select(x =>
                                                                     PocoConstructor.MakeFromObj(x, RFilterTableVM.tblRecepientFilterTableNamePR)
                                                                     );
         if (items.Count() == 0)
         {
             return(FetchResult <RFilterTableVM> .Fail(DEBS.Translate("MessageMdl.There is no base tables in database")));
         }
         return(FetchResult <RFilterTableVM> .Succes(items, items.Count()));
     }
 }