feat: add model for lecture hall
This commit is contained in:
parent
477cec2f98
commit
59eccf8b93
37
ApiDto/Responses/LectureHallDetailsResponse.cs
Normal file
37
ApiDto/Responses/LectureHallDetailsResponse.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Mirea.Api.Dto.Responses;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the detailed response model for a lecture hall.
|
||||
/// </summary>
|
||||
public class LectureHallDetailsResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the lecture hall.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the lecture hall.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the campus to which the lecture hall belongs.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int CampusId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the campus.
|
||||
/// </summary>
|
||||
public string? CampusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the code of the campus.
|
||||
/// </summary>
|
||||
public string? CampusCode { get; set; }
|
||||
}
|
27
ApiDto/Responses/LectureHallResponse.cs
Normal file
27
ApiDto/Responses/LectureHallResponse.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Mirea.Api.Dto.Responses;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for a lecture hall.
|
||||
/// </summary>
|
||||
public class LectureHallResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the lecture hall.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the lecture hall.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the campus to which the lecture hall belongs.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int CampusId { get; set; }
|
||||
}
|
Loading…
Reference in New Issue
Block a user