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

Last change on this file since 9a57e89 was 9a57e89, checked in by imbrsk <boris696boris@…>, 11 months ago

Refactor user management: update models, repositories, and services; remove obsolete files

  • Property mode set to 100644
File size: 460 bytes
RevLine 
[9a57e89]1using System.Threading;
2using System.Threading.Tasks;
3using iknow_api.Core.Models;
4
5namespace iknow_api.Repository.Interfaces
6{
7 public interface IUserRepository
8 {
9 Task<bool> EmailExistsAsync(string email, CancellationToken cancellationToken = default);
10 Task<User> AddUserAsync(User user, CancellationToken cancellationToken = default);
11 Task<User?> GetUserByIdAsync(int id, CancellationToken cancellationToken = default);
12 }
13}
Note: See TracBrowser for help on using the repository browser.