Add support for dismissing cases

This commit is contained in:
jvyden 2022-08-05 19:07:43 -04:00
commit 96e8c7f71e
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
6 changed files with 86 additions and 10 deletions

View file

@ -31,6 +31,8 @@ public class CasePage : BaseLayout
this.SearchValue = name.Replace(" ", string.Empty);
this.Cases = await this.Database.Cases
.Include(c => c.Creator)
.Include(c => c.Dismisser)
.OrderByDescending(c => c.CaseId)
.ToListAsync();
this.CaseCount = await this.Database.Cases.CountAsync(c => c.Description.Contains(this.SearchValue));