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

35 lines
763 B
C#
Raw 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 Student
{
public long Id { get; set; }
public string Fio { get; set; }
public bool FamilyPos { get; set; }
public bool Domitory { get; set; }
public long GroupId { get; set; }
2024-10-28 21:38:22 +04:00
public static Student CreateEntity(long id, string fio, bool familyPos, bool domitory, long groupId)
2024-10-28 19:18:57 +04:00
{
return new Student
{
Id = id,
Fio = fio,
FamilyPos = familyPos,
Domitory = domitory,
GroupId = groupId
};
}
}
}