-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathCourse.cs
More file actions
57 lines (47 loc) · 1.41 KB
/
Course.cs
File metadata and controls
57 lines (47 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
namespace TrainingCourse.Api.Models;
/// <summary>
/// Модель курса
/// </summary>
public class Course
{
/// <summary>
/// Идентификатор в системе
/// </summary>
public int Id { get; set; }
/// <summary>
/// Наименование курса
/// </summary>
public required string CourseName { get; set; }
/// <summary>
/// ФИО преподавателя
/// </summary>
public required string TeacherFullName { get; set; }
/// <summary>
/// Дата начала курса
/// </summary>
public required DateOnly StartDate { get; set; }
/// <summary>
/// Дата окончания курса
/// </summary>
public required DateOnly EndDate { get; set; }
/// <summary>
/// Максимальное число студентов
/// </summary>
public int MaxStudents { get; set; }
/// <summary>
/// Текущее число студентов
/// </summary>
public int CurrentStudents { get; set; }
/// <summary>
/// Выдача сертификата по окончании
/// </summary>
public bool HasCertificate { get; set; }
/// <summary>
/// Стоимость курса
/// </summary>
public decimal Price { get; set; }
/// <summary>
/// Рейтинг курса (1-5)
/// </summary>
public int Rating { get; set; }
}