mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-18 23:42:28 +00:00
Rename case properties, add dismissal button
This commit is contained in:
parent
b3d91fd470
commit
1996c1cdbb
7 changed files with 233 additions and 45 deletions
|
@ -33,7 +33,7 @@ public class CasePage : BaseLayout
|
|||
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.CaseCount = await this.Database.Cases.CountAsync(c => c.Description.Contains(this.SearchValue));
|
||||
|
||||
this.PageNumber = pageNumber;
|
||||
this.PageAmount = Math.Max(1, (int)Math.Ceiling((double)this.CaseCount / ServerStatics.PageSize));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue