15 lines
400 B
C#
15 lines
400 B
C#
using DatabaseModels.DataTransferObjets;
|
|
|
|
namespace DatabaseModels.InitialObjects;
|
|
|
|
public class ScoreboardRecord
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int Score { get; set; }
|
|
public DateTime PostTime { get; set; }
|
|
|
|
public User User { get; set; } = null!;
|
|
|
|
public ScoreboardRecordDto ToDto() => new() { Id = Id, Score = Score, PostTime = PostTime, User = User.ToDto() };
|
|
} |