2024-11-18 15:41:33 +04:00
|
|
|
|
using StudentProgressRecord.Entity.Enums;
|
|
|
|
|
using System;
|
2024-10-28 19:18:57 +04:00
|
|
|
|
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; }
|
|
|
|
|
|
2024-11-18 15:41:33 +04:00
|
|
|
|
public Direction direction { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Subject CreateEntity(long id, string name, Direction direction)
|
2024-10-28 19:18:57 +04:00
|
|
|
|
{
|
|
|
|
|
return new Subject
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-19 16:05:32 +04:00
|
|
|
|
Name = name,
|
|
|
|
|
direction = direction
|
2024-10-28 19:18:57 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|