Initial Commit
This commit is contained in:
5
src/SportsDivision.Application/DTOs/StudentDto.cs
Normal file
5
src/SportsDivision.Application/DTOs/StudentDto.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
using SportsDivision.Domain.Enums;
|
||||
namespace SportsDivision.Application.DTOs;
|
||||
public class StudentDto { public int StudentId { get; set; } public string ExistingStudentId { get; set; } = string.Empty; public string FirstName { get; set; } = string.Empty; public string LastName { get; set; } = string.Empty; public string FullName { get; set; } = string.Empty; public DateOnly DateOfBirth { get; set; } public Sex Sex { get; set; } public int SchoolId { get; set; } public string SchoolName { get; set; } = string.Empty; public bool IsActive { get; set; } public int? Age { get; set; } }
|
||||
public class StudentCreateDto { public string ExistingStudentId { get; set; } = string.Empty; public string FirstName { get; set; } = string.Empty; public string LastName { get; set; } = string.Empty; public DateOnly DateOfBirth { get; set; } public Sex Sex { get; set; } public int SchoolId { get; set; } }
|
||||
public class StudentUpdateDto : StudentCreateDto { public int StudentId { get; set; } public bool IsActive { get; set; } }
|
||||
Reference in New Issue
Block a user