30 lines
723 B
C#
Raw Normal View History

2024-12-07 15:38:30 +04:00
namespace StudentProgressRecord.Entity
2024-10-28 19:18:57 +04:00
{
public class Statement
{
public long Id { get; set; }
2024-10-28 19:18:57 +04:00
public long SubjectId { get; set; }
public long TeacherId { get; set; }
2024-10-28 21:38:22 +04:00
public DateTime Date { get; set; }
2024-10-28 19:18:57 +04:00
public IEnumerable<Marks> Marks { get; private set; } = [];
2024-10-28 19:18:57 +04:00
2024-12-07 15:38:30 +04:00
public static Statement CreateOperation(long id, long subjectId, long teacherId,
DateTime timeStamp, IEnumerable<Marks> marks)
2024-10-28 19:18:57 +04:00
{
return new Statement
{
Id = id,
SubjectId = subjectId,
2024-10-28 19:18:57 +04:00
TeacherId = teacherId,
2024-10-28 21:38:22 +04:00
Date = timeStamp,
Marks = marks
};
2024-10-28 19:18:57 +04:00
}
2024-10-28 19:18:57 +04:00
}
}