feat: write a dto in a separate project
This commit is contained in:
22
ApiDto/Responses/ProfessorResponse.cs
Normal file
22
ApiDto/Responses/ProfessorResponse.cs
Normal file
@ -0,0 +1,22 @@
|
||||
namespace Mirea.Api.Dto.Responses;
|
||||
|
||||
/// <summary>
|
||||
/// Represents information about a professor.
|
||||
/// </summary>
|
||||
public class ProfessorResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the unique identifier of the professor.
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the professor.
|
||||
/// </summary>
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the alternate name of the professor (optional).
|
||||
/// </summary>
|
||||
public string? AltName { get; set; }
|
||||
}
|
Reference in New Issue
Block a user