zadnjih 100 artiklov
gumb nazaj da vrne na projekt
This commit is contained in:
@@ -60,21 +60,8 @@ namespace EveryThing.Pages.CodeTableItems
|
||||
.Where(x => x.IdCompanyFk == user.IdCompanyFk
|
||||
&& EF.Functions.Like(x.Title, $"%{searchString}%")
|
||||
|| EF.Functions.Like(x.Description, $"%{searchString}%"))
|
||||
.Include(j => j.Company).Take(100).ToListAsync();
|
||||
|
||||
//Item = await _context.CodeTableItems
|
||||
// .Where(x => x.IdCompanyFk == user.IdCompanyFk
|
||||
// && (!search
|
||||
// || EF.Functions.Like(x.Title, $"%{searchString}%")
|
||||
// || (x.Description != null
|
||||
// && EF.Functions.Like(x.Description, $"%{searchString}%"))))
|
||||
// .Include(j => j.Company).Take(100).ToListAsync();
|
||||
|
||||
//if ()
|
||||
//{
|
||||
// Item = Item.Where(s => s.Title.Contains(searchString, StringComparison.InvariantCultureIgnoreCase)
|
||||
// || (s.Description != null && s.Description.Contains(searchString, StringComparison.InvariantCultureIgnoreCase))).ToList();
|
||||
//}
|
||||
.Include(j => j.Company)
|
||||
.OrderByDescending(x => x.IdItem).Take(100).ToListAsync();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user