Pibd-22_Lyakhov_T.I._Simple/StudentProgressRecord/Entity/Teacher.cs

26 lines
479 B
C#
Raw Permalink Normal View History

2024-10-28 19:18:57 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.Entity
{
public class Teacher
{
public long Id { get; set; }
2024-11-08 19:32:02 +04:00
public string Name { get; set; }
2024-10-28 19:18:57 +04:00
2024-11-08 19:32:02 +04:00
public static Teacher CreateEntity(long id, string name)
2024-10-28 19:18:57 +04:00
{
return new Teacher
{
Id = id,
2024-11-08 19:32:02 +04:00
Name = name
2024-10-28 19:18:57 +04:00
};
}
}
}