Pibd-22_Lyakhov_T.I._Simple/StudentProgressRecord/Entity/Subject.cs
2024-11-19 16:05:32 +04:00

29 lines
630 B
C#

using StudentProgressRecord.Entity.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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,
direction = direction
};
}
}
}