Exemple #1
0
 public static List<仓库ViewModel> GetList(仓库Filter filter = null)
 {
     using (var client = new BDKRWS.BDKRWSClient())
     {
         return client.仓库信息_GetList(filter);
     }
 }
Exemple #2
0
 public List<仓库ViewModel> 仓库信息_GetList(仓库Filter filter)
 {
     using (var context = new BDKRContext())
     {
         var rep = new Repository<仓库信息>(context);
         return rep.GetList<仓库ViewModel>(t => t.ConvertToViewModel(), t =>
         {
             if (filter != null)
             {
                 if (filter.关键词.Length > 0 && !filter.关键词.Contains(t.仓库名称)) return false;
             }
             return true;
         });
     }
 }