Changeset 4f5d8fd for iknow-api/Repository
- Timestamp:
- 10/27/25 15:20:33 (11 months ago)
- Branches:
- master
- Children:
- c0256f3
- Parents:
- 5eb7847
- Location:
- iknow-api/Repository
- Files:
-
- 2 edited
-
Implementations/UserRepository.cs (modified) (1 diff)
-
Interface/IUserRepository.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Repository/Implementations/UserRepository.cs
r5eb7847 r4f5d8fd 24 24 return await _context.User.FirstOrDefaultAsync(u => u.Email == username); 25 25 } 26 27 public async Task<User> GetUserByIdAsync(int id) 28 { 29 return await _context.User.FirstOrDefaultAsync(u => u.Id == id); 30 } 31 26 32 27 33 public async Task AddUserAsync(User user) -
iknow-api/Repository/Interface/IUserRepository.cs
r5eb7847 r4f5d8fd 8 8 Task AddUserAsync(User user); 9 9 Task<int> GetUsersCountAsync(); 10 Task<User> GetUserByIdAsync(int id); 10 11 } 11 12 }
Note:
See TracChangeset
for help on using the changeset viewer.
