view announcements, users by page number

This commit is contained in:
Dimitar Byalkov
2023-03-29 22:46:46 +02:00
parent f858c47ff7
commit 5c0eb222a4
14 changed files with 141 additions and 21 deletions

View File

@@ -13,14 +13,20 @@ namespace StudentHouseDashboard
private string title;
private DateTime publishDate;
protected GenericMessage(User author, string description, string title, DateTime publishDate)
protected GenericMessage(int id, User author, string description, string title, DateTime publishDate)
{
ID = id;
Author = author;
Description = description;
Title = title;
PublishDate = publishDate;
}
public int ID
{
get; private set;
}
public User Author
{
get => author;