Add case generation

This commit is contained in:
jvyden 2022-07-27 17:19:49 -04:00
parent bc998b1ba9
commit 1eede416d4
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 27 additions and 17 deletions

View file

@ -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;