File size: 561 Bytes
5fc700d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using ToolHub.Models;
namespace ToolHub.Services;
public interface IUserService
{
Task<User?> GetUserByIdAsync(int id);
Task<User?> GetUserByEmailAsync(string email);
Task<bool> CreateUserAsync(User user);
Task<bool> UpdateUserAsync(User user);
Task<bool> VerifyPasswordAsync(string email, string password);
Task<List<Tool>> GetUserFavoritesAsync(int userId);
Task<bool> AddFavoriteAsync(int userId, int toolId);
Task<bool> RemoveFavoriteAsync(int userId, int toolId);
Task<bool> IsFavoriteAsync(int userId, int toolId);
}
|