|
Last change
on this file since 615f18d was 615f18d, checked in by Stefan-Saveski <stefansaveski19@…>, 10 months ago |
|
Add getSemesters endpoint and related data access
Introduce a new getSemesters endpoint in UserController.cs to retrieve user semester data using JWT authentication.
Add DbSet<EnrolledSemesters> to AppDbContext.cs for database interaction.
Implement GetUserSemestersAsync in UserRepository.cs to fetch semesters by user ID, and update IUserRepository.cs to declare this method.
Add GetUserSemesters method in UserService.cs to extract user ID from JWT and retrieve semesters, updating IUserService.cs accordingly.
|
-
Property mode
set to
100644
|
|
File size:
246 bytes
|
| Line | |
|---|
| 1 | using iknow_api.DTOs;
|
|---|
| 2 | using iknow_api.Models;
|
|---|
| 3 | namespace iknow_api.Services
|
|---|
| 4 | {
|
|---|
| 5 | public interface IUserService
|
|---|
| 6 | {
|
|---|
| 7 | Task<User> GetUserData(string userId);
|
|---|
| 8 | Task<List<EnrolledSemesters>> GetUserSemesters(string userId);
|
|---|
| 9 | }
|
|---|
| 10 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.