Exemplo n.º 1
0
 //Search Entities
 public async Task <IEnumerable <SubItems> > SearchSubItems(List <string> lst, List <string> includeLst = null)
 {
     using (var ctx = new SubItemsService())
     {
         return(await ctx.GetSubItemsByExpressionLst(lst, includeLst).ConfigureAwait(false));
     }
 }
Exemplo n.º 2
0
 private static void GetSubItems(List <xcuda_Item> alst, EntryDataDetails salesDetails)
 {
     using (var ctx = new SubItemsService())
     {
         alst.AddRange(
             ctx.GetSubItemsByExpressionLst(
                 new List <string>()
         {
             string.Format("ItemNumber == \"{0}\"", salesDetails.ItemNumber)
         }
                 , new List <string>()
         {
             "xcuda_Item", "xcuda_Item.EX", "xcuda_Item.AsycudaDocument"
         }).Result
             //.Where(y => y.ItemNumber == salesDetails.ItemNumber)
             .Select(x => x.xcuda_Item).ToList());
     }
 }