diff --git a/Endpoint/Controllers/V1/ScheduleController.cs b/Endpoint/Controllers/V1/ScheduleController.cs index a3fec0a..05931b1 100644 --- a/Endpoint/Controllers/V1/ScheduleController.cs +++ b/Endpoint/Controllers/V1/ScheduleController.cs @@ -21,10 +21,18 @@ namespace Mirea.Api.Endpoint.Controllers.V1; [CacheMaxAge(true)] public class ScheduleController(IMediator mediator, IOptionsSnapshot config) : BaseController { + /// + /// Retrieves the start term for the schedule. + /// + /// The start term as a value. [CacheMaxAge(1, 0)] [HttpGet("StartTerm")] public ActionResult GetStartTerm() => config.Value.ScheduleSettings!.StartTerm; + /// + /// Retrieves the pair periods. + /// + /// A dictionary of pair periods, where the key is an integer identifier and the value is a object. [CacheMaxAge(1, 0)] [HttpGet("PairPeriod")] public ActionResult> GetPairPeriod() => config.Value.ScheduleSettings!.PairPeriod.ConvertToDto(); diff --git a/SqlData/Application/Cqrs/Professor/Queries/GetProfessorDetails/GetProfessorInfoQuery.cs b/SqlData/Application/Cqrs/Professor/Queries/GetProfessorDetails/GetProfessorInfoQuery.cs index 93f1aa8..4fa0a25 100644 --- a/SqlData/Application/Cqrs/Professor/Queries/GetProfessorDetails/GetProfessorInfoQuery.cs +++ b/SqlData/Application/Cqrs/Professor/Queries/GetProfessorDetails/GetProfessorInfoQuery.cs @@ -2,7 +2,16 @@ namespace Mirea.Api.DataAccess.Application.Cqrs.Professor.Queries.GetProfessorDetails; +/// +/// Represents a query to retrieve information about a professor. +/// +/// +/// This query can be used to fetch details of a professor by either their unique identifier. +/// public class GetProfessorInfoQuery : IRequest { + /// + /// The unique identifier for the professor. + /// public required int Id { get; set; } } \ No newline at end of file