source: iknow-api/Repository/Interface/IUserRepository.cs@ ff202cf

Last change on this file since ff202cf was ff202cf, checked in by GitHub <noreply@…>, 11 months ago

Merge branch 'Dev' into feature/getUser

  • Property mode set to 100644
File size: 568 bytes
RevLine 
[e49c3ed]1using iknow_api.Models;
[277bd72]2namespace iknow_api.Repositories
[9a57e89]3{
4 public interface IUserRepository
5 {
[5b42c8d]6 Task<bool> UserExistsAsync(string username);
7 Task<User?> GetUserByUsernameAsync(string username);
8 Task AddUserAsync(User user);
[b38c39c]9 Task AddContactAsync(ContactInfo contactInfo);
10 Task AddEnrollmentAsync(EnrollmentInfo enrollment);
11 Task AddHighSchoolAsync(HighSchool highSchool);
[5b42c8d]12 Task<int> GetUsersCountAsync();
[cab02ad]13 Task<User> GetUserByIdAsync(int id);
[c155364]14 Task<User?> GetOnlyUserByIdAsync(int id);
15
[9a57e89]16 }
17}
Note: See TracBrowser for help on using the repository browser.