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()); } }
public async Task <List <T> > GetAll() { // return await _Context.Set<T>().ToListAsync(); return(await _Context.Set <T>().FromSqlRaw <T>("sp_GetGroupList").ToListAsync()); }
public async Task <List <T> > GetAll() { return(await _context.Set <T>().ToListAsync()); }