|
Last change
on this file was ea40556, checked in by Stefan-Saveski <stefansaveski19@…>, 8 days ago |
|
|
-
Property mode
set to
100644
|
|
File size:
648 bytes
|
| Line | |
|---|
| 1 | using iknow_api.Models;
|
|---|
| 2 | namespace iknow_api.Repositories
|
|---|
| 3 | {
|
|---|
| 4 | public interface IUserRepository
|
|---|
| 5 | {
|
|---|
| 6 | Task<bool> UserExistsAsync(string username);
|
|---|
| 7 | Task<User?> GetUserByUsernameAsync(string username);
|
|---|
| 8 | Task AddUserAsync(User user);
|
|---|
| 9 | Task AddContactAsync(ContactInfo contactInfo);
|
|---|
| 10 | Task AddHighSchoolAsync(HighSchool highSchool);
|
|---|
| 11 | Task<int> GetUsersCountAsync();
|
|---|
| 12 | Task<User?> GetUserByIdAsync(int id);
|
|---|
| 13 | Task<List<EnrolledSemesters>?> GetUserSemestersAsync(int id);
|
|---|
| 14 | Task<User?> GetOnlyUserByIdAsync(int id);
|
|---|
| 15 | Task<List<PassedSubject>> GetUserPassedSubjectsAsync(int id);
|
|---|
| 16 | }
|
|---|
| 17 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.