23 lines
475 B
C#
23 lines
475 B
C#
using StudentProgressRecord.Entity.Enums;
|
|
|
|
namespace StudentProgressRecord.Entity
|
|
{
|
|
public class Subject
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public Direction direction { get; set; }
|
|
|
|
public static Subject CreateEntity(long id, string name, Direction direction)
|
|
{
|
|
return new Subject
|
|
{
|
|
Id = id,
|
|
Name = name
|
|
};
|
|
}
|
|
}
|
|
}
|