fix: add discipline id

This commit is contained in:
Polianin Nikita 2024-02-19 11:20:05 +03:00
parent e3e7c4550f
commit 29485368f8
2 changed files with 8 additions and 1 deletions

View File

@ -46,9 +46,11 @@ public class GetScheduleListQueryHandler(ILessonDbContext dbContext) : IRequestH
DayOfWeek = l.DayOfWeek, DayOfWeek = l.DayOfWeek,
PairNumber = l.PairNumber, PairNumber = l.PairNumber,
IsEven = l.IsEven, IsEven = l.IsEven,
Discipline = l.Discipline!.Name,
TypeOfOccupation = l.TypeOfOccupation!.ShortName, TypeOfOccupation = l.TypeOfOccupation!.ShortName,
Discipline = l.Discipline!.Name,
DisciplineId = l.DisciplineId,
Group = l.Group!.Name, Group = l.Group!.Name,
GroupId = l.GroupId, GroupId = l.GroupId,

View File

@ -28,6 +28,11 @@ public class ScheduleLookupDto
/// </summary> /// </summary>
public required string Discipline { get; set; } public required string Discipline { get; set; }
/// <summary>
/// Gets or sets the ID of the discipline.
/// </summary>
public required int DisciplineId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of occupation. /// Gets or sets the type of occupation.
/// </summary> /// </summary>