Changeset c2f79d7 for iknow-api/Models


Ignore:
Timestamp:
12/08/25 21:51:12 (10 months ago)
Author:
Stefan-Saveski <stefan@…>
Branches:
master
Children:
bb656bc
Parents:
a92a2a4
Message:

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.

Location:
iknow-api/Models
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Models/EnrollmentInfo.cs

    ra92a2a4 rc2f79d7  
    1111        public int Id { get; set; }
    1212        public int enrollmentYear { get; set; }
    13         public Quota quota;
     13        // CS1597 fix: no semicolon after accessor block
     14        public Quota quota { get; set; }
    1415        public int MajorId { get; set; }
    1516        public Major? Major { get; set; }
  • iknow-api/Models/SemesterSubjects.cs

    ra92a2a4 rc2f79d7  
    1414        public Subject? Subject { get; set; }
    1515        public User? Professor { get; set; }           
     16        public PassedSubject? PassedSubject { get; set; }
    1617    }
    1718}
  • iknow-api/Models/User.cs

    ra92a2a4 rc2f79d7  
    77        Admin,
    88        Professor,
    9         Strudent
     9        Student
    1010    }
    1111
Note: See TracChangeset for help on using the changeset viewer.