2024-12-07 15:36:59 +04:00

36 lines
899 B
C#

using StudentProgressRecord.Entity.Enums;
using System.ComponentModel;
namespace StudentProgressRecord.Entity
{
public class StudentTransition
{
public long Id { get; set; }
[Browsable(false)]
public long StudentId { get; set; }
[DisplayName("Студент")]
public string StudentName { get; set; } = string.Empty;
[DisplayName("Тип операции")]
public Operations Operation { get; set; }
[DisplayName("Дата")]
public DateTime Date { get; set; }
public static StudentTransition CreateOperation(long id, long studentId, Operations operation, DateTime time)
{
return new StudentTransition
{
Id = id,
StudentId = studentId,
Operation = operation,
Date = time
};
}
}
}