Add controllers for the Get method #9

Merged
Wesser merged 33 commits from feat/controller-get into release/v1.0.0 2024-02-19 12:06:31 +03:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit 29485368f8 - Show all commits

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>