2024-12-02 20:25:45 +04:00

34 lines
751 B
C#

using StudentProgressRecord.Entity.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.Entity
{
public class Subject
{
public long Id { get; set; }
[DisplayName("Название")]
public string Name { get; set; }
[DisplayName("Направление")]
public Direction direction { get; set; }
public static Subject CreateEntity(long id, string name, Direction direction)
{
return new Subject
{
Id = id,
Name = name,
direction = direction
};
}
}
}