Add ability for cases to perform actions

This commit is contained in:
jvyden 2022-08-05 20:32:35 -04:00
commit 4718970f6b
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
10 changed files with 169 additions and 41 deletions

View file

@ -35,7 +35,7 @@ public class CasePage : BaseLayout
.Include(c => c.Dismisser)
.OrderByDescending(c => c.CaseId)
.ToListAsync();
this.CaseCount = await this.Database.Cases.CountAsync(c => c.Description.Contains(this.SearchValue));
this.CaseCount = await this.Database.Cases.CountAsync(c => c.Reason.Contains(this.SearchValue));
this.PageNumber = pageNumber;
this.PageAmount = Math.Max(1, (int)Math.Ceiling((double)this.CaseCount / ServerStatics.PageSize));