Add controllers for the Get method #9
@ -46,9 +46,11 @@ public class GetScheduleListQueryHandler(ILessonDbContext dbContext) : IRequestH
|
||||
DayOfWeek = l.DayOfWeek,
|
||||
PairNumber = l.PairNumber,
|
||||
IsEven = l.IsEven,
|
||||
Discipline = l.Discipline!.Name,
|
||||
TypeOfOccupation = l.TypeOfOccupation!.ShortName,
|
||||
|
||||
Discipline = l.Discipline!.Name,
|
||||
DisciplineId = l.DisciplineId,
|
||||
|
||||
Group = l.Group!.Name,
|
||||
GroupId = l.GroupId,
|
||||
|
||||
|
@ -28,6 +28,11 @@ public class ScheduleLookupDto
|
||||
/// </summary>
|
||||
public required string Discipline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the discipline.
|
||||
/// </summary>
|
||||
public required int DisciplineId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of occupation.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user