slarny4/Demo1/Data/LocalData/Entity/DailyAttendance.cs

21 lines
505 B
C#
Raw Normal View History

2024-10-23 09:52:43 +00:00
using System;
namespace Demo.Data.LocalData.Entity
{
public class DailyAttendance
{
public Guid UserId { get; set; }
public bool[] Attendance { get; set; }
public DailyAttendance(Guid userId, int days)
{
UserId = userId;
Attendance = new bool[days];
for (int i = 0; i < days; i++)
{
Attendance[i] = true; // По умолчанию все присутствуют
}
}
}
}