Ignore:
Timestamp:
12/10/25 13:45:42 (10 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
39f76a9
Parents:
ab652ff (diff), 615f18d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Stefan Saveski <76560180+stefansaveski@…> (12/10/25 13:45:42)
git-committer:
GitHub <noreply@…> (12/10/25 13:45:42)
Message:

Merge pull request #7 from stefansaveski/feature/get-semesters

Add getSemesters endpoint and related data access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Repository/Implementations/UserRepository.cs

    rab652ff rf735dac  
    6363            return await _context.User.CountAsync();
    6464        }
     65        public async Task<List<EnrolledSemesters>> GetUserSemestersAsync(int id)
     66        {
     67            return await _context.EnrolledSemesters
     68                .Include(es => es.Major)
     69                .Where(es => es.UserId == id)
     70                .ToListAsync();
     71        }
    6572
    6673    }
Note: See TracChangeset for help on using the changeset viewer.