source: iknow-api/Models/PassedSubject.cs

Last change on this file was c2f79d7, checked in by Stefan-Saveski <stefan@…>, 10 months ago

Refactor and enhance application structure

Enhanced error handling in AuthController with detailed exception handling for user registration. Updated UserDTO to improve JSON serialization and renamed enums for clarity. Introduced new entities (Major, PassedSubject, etc.) and seeded initial data in AppDbContext.

Replaced legacy migrations with 20251208203846_InitialCreate, reflecting the updated schema. Fixed typographical errors and improved JSON serialization in Program.cs with case-insensitive property matching and enum handling.

Refactored repository interfaces for better null safety. Improved debugging in AuthService and updated connection strings. Added the PassedSubject entity and cleaned up redundant code and unused imports for better maintainability.

  • Property mode set to 100644
File size: 438 bytes
RevLine 
[c2f79d7]1namespace iknow_api.Models
2{
3 public enum Grade
4 {
5 Six = 6,
6 Seven = 7,
7 Eight = 8,
8 Nine = 9,
9 Ten = 10
10 }
11
12 public class PassedSubject
13 {
14 public int Id { get; set; }
15 public int SemesterSubjectId { get; set; }
16 public SemesterSubject? SemesterSubject { get; set; }
17 public Grade Grade { get; set; }
18 public DateTime DatePassed { get; set; }
19 }
20}
Note: See TracBrowser for help on using the repository browser.