-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | ||
|
||
namespace EUniversity.Core.Dtos.University; | ||
|
||
[ValidateNever] // Remove data annotations validation | ||
public record CourseCreateDto(string Name, string? Description, int? SemesterId); | ||
|
||
public record CourseMinimalViewDto(int Id, string Name, SemesterMinimalViewDto? Semester); | ||
|
||
public record CoursePreviewDto(int Id, string Name, | ||
DateTimeOffset CreationDate, DateTimeOffset UpdateDate, | ||
SemesterMinimalViewDto? Semester); | ||
|
||
public record CourseViewDto(int Id, string Name, string? Description, | ||
DateTimeOffset CreationDate, DateTimeOffset UpdateDate, | ||
SemesterPreviewDto? Semester); |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using EUniversity.Core.Dtos.Users; | ||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | ||
|
||
namespace EUniversity.Core.Dtos.University.Grades; | ||
|
||
[ValidateNever] // Remove data annotations validation | ||
public record AssignedGradeCreateDto(int GradeId, int GroupId, string StudentId, string? Notes, int? ActivityTypeId); | ||
|
||
|
||
[ValidateNever] // Remove data annotations validation | ||
public record class AssignedGradeUpdateDto(int GradeId, string? Notes, int? ActivityTypeId); | ||
|
||
public record AssignedGradeViewDto(int Id, string? Notes, | ||
GradeMinimalViewDto Grade, GroupMinimalViewDto? Group, | ||
UserViewDto? Assigner, UserViewDto? Reassigner, | ||
StudentPreviewDto? Student, | ||
DateTimeOffset CreationDate, DateTimeOffset UpdateDate, | ||
ActivityTypeMinimalDto? ActivityType); |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using EUniversity.Core.Dtos.Users; | ||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | ||
|
||
namespace EUniversity.Core.Dtos.University; | ||
|
||
[ValidateNever] // Remove data annotations validation | ||
public record GroupCreateDto(string Name, int CourseId, string? TeacherId); | ||
|
||
public record GroupMinimalViewDto(int Id, string Name, CourseMinimalViewDto Course); | ||
|
||
public record GroupPreviewDto(int Id, string Name, DateTimeOffset CreationDate, DateTimeOffset UpdateDate, TeacherPreviewDto? Teacher, CoursePreviewDto Course); | ||
|
||
public record GroupViewDto(int Id, string Name, | ||
DateTimeOffset CreationDate, DateTimeOffset UpdateDate, | ||
TeacherPreviewDto? Teacher, CoursePreviewDto Course); |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; | ||
|
||
namespace EUniversity.Core.Dtos.University; | ||
|
||
[ValidateNever] // Remove data annotations validation | ||
public record SemesterCreateDto(string Name, DateTimeOffset DateFrom, DateTimeOffset DateTo); | ||
|
||
public record SemesterMinimalViewDto(int Id, string Name); | ||
|
||
public record SemesterPreviewDto(int Id, string Name, | ||
DateTimeOffset CreationDate, DateTimeOffset UpdateDate, | ||
DateTimeOffset DateFrom, DateTimeOffset DateTo); | ||
|
||
public record SemesterViewDto(int Id, string Name, | ||
DateTimeOffset CreationDate, DateTimeOffset UpdateDate, | ||
DateTimeOffset DateFrom, DateTimeOffset DateTo); |
This file was deleted.
This file was deleted.
This file was deleted.