public static List <ICInventory> GetICInventories(int itemId)
 {
     using (K3BhDBContext _context = new K3BhDBContext())
     {
         return(_context.Set <ICInventory>().
                Include("K3AuxItem").Where(x => x.Id == itemId && x.FQty > 0).ToList());
     }
 }
Ejemplo n.º 2
0
 internal async static Task <List <POInventory> > GetPOInventoriesAsync(int itemId)
 {
     using (K3BhDBContext _context = new K3BhDBContext())
     {
         return(await _context.Set <POInventory>().
                Include("K3AuxItem").Where(x => x.Id == itemId && x.FQty > 0).ToListAsync());
     }
 }