mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-04 15:12:28 +00:00
Add case generation
This commit is contained in:
parent
bc998b1ba9
commit
1eede416d4
4 changed files with 27 additions and 17 deletions
|
@ -30,7 +30,9 @@ public class CasePage : BaseLayout
|
|||
|
||||
this.SearchValue = name.Replace(" ", string.Empty);
|
||||
|
||||
this.Cases = await this.Database.Cases.ToListAsync();
|
||||
this.Cases = await this.Database.Cases
|
||||
.OrderByDescending(c => c.CaseId)
|
||||
.ToListAsync();
|
||||
this.CaseCount = await this.Database.Cases.CountAsync(c => c.CaseDescription.Contains(this.SearchValue));
|
||||
|
||||
this.PageNumber = pageNumber;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue