Toolhub / Services /IUserService.cs
unifare
Initial commit: ToolHub ASP.NET Core app
5fc700d
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);
}