Remove caching; add previous/next puzzle dates to puzzles

This commit is contained in:
2024-06-29 17:08:34 +02:00
parent e260012e20
commit e54f501f9a
8 changed files with 143 additions and 55 deletions

View File

@@ -8,12 +8,18 @@
PuzzleNumber = dbPuzzle.Index,
PrintDate = dbPuzzle.PrintDate,
Editor = dbPuzzle.EditorName,
Categories = dbPuzzle.Categories.OrderBy(x => (int)x.Color).Select(PuzzleCategoryDTO.FromEntity).ToList()
NextPuzzle = dbPuzzle.NextPrintDate ?? string.Empty,
PreviousPuzzle = dbPuzzle.PrevPrintDate ?? string.Empty,
Categories = dbPuzzle.Categories.OrderBy(x => (int)x.Color).Select(PuzzleCategoryDTO.FromEntity).ToList(),
};
public int PuzzleNumber { get; set; }
public string PrintDate { get; set; } = string.Empty;
public string Editor { get; set;} = string.Empty;
public string PreviousPuzzle { get; set; } = string.Empty;
public string NextPuzzle { get; set; } = string.Empty;
public string Editor { get; set; } = string.Empty;
public ICollection<PuzzleCategoryDTO> Categories { get; set; } = [];
}