skantravels/API/Persistence/Repositories/IUserRepository.cs

17 lines
501 B
C#
Raw Normal View History

using API.Models;
namespace API.Persistence.Repositories
{
public interface IUserRepository
{
Task<string> CreateUserAsync(User user);
Task<bool> DeleteUserAsync(string id);
Task<List<User>> QueryAllUsersAsync();
Task<User> QueryUserByIdAsync(string id);
2024-08-14 09:28:12 +01:00
Task<User> QueryUserByEmailAsync(string email);
Task<bool> UpdateUserAsync(User user);
Task<User> QueryUserByRefreshTokenAsync(string refreshToken);
2024-09-02 12:14:13 +01:00
void Save();
}
2024-09-02 12:14:13 +01:00
}