32 lines
1007 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SessionResults_Kudyaeva.Entities.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SessionResults_Kudyaeva.Entities;
public class AddMark
{
public int Id { get; private set; }
public int StudentId { get; private set; }
public int GroupId { get; private set; }
public int DisciplineId { get; private set; }
public Mark? Mark { get; private set; } // Оставляем тип Mark
public DateTime Date { get; private set; }
public static AddMark CreateOperation(int id, int studentId, int groupId, int disciplineId, Mark mark)
{
return new AddMark
{
Id = id,
StudentId = studentId,
GroupId = groupId,
DisciplineId = disciplineId,
Mark = mark, // Если `Mark` имеет значение по умолчанию, его можно обработать
Date = DateTime.Now
};
}
}