public async Task <List <Product> > ProductAutocomplete(string PDesc = "")
 {
     if (_context != null && PDesc == "AllProductAutocomplte")
     {
         return(await _context.Set <Product>().ToListAsync());
     }
     else
     {
         return(await(from m in _context.Product
                      where m.ProductDesc.Contains(PDesc) && m.Product_Lock == null
                      select m).ToListAsync());
     }
 }
示例#2
0
 public async Task <List <T> > GetAll()
 {
     // return await _Context.Set<T>().ToListAsync();
     return(await _Context.Set <T>().FromSqlRaw <T>("sp_GetGroupList").ToListAsync());
 }
示例#3
0
 public async Task <List <T> > GetAll()
 {
     return(await _context.Set <T>().ToListAsync());
 }