using Microsoft.AspNetCore.Identity; using WebVentaCoche.Models; using WebVentaCoche.ViewModels; namespace WebVentaCoche.Helpers { public interface IUserHelper { Task GetUserAsync(string email); Task AddUserAsync(User user, string password); Task ValidateRoleAsync(string role); Task AddUserRoleAsync(User user, string role); Task IsUserInroleAsync(User user, string role); Task LoginAsync(LoginViewModel model); Task LogoutAsync(); Task GenerateEmailConfirmationTokenAsync(User user); Task ConfirmEmailAsync(User user, string token); Task IsEmailConfirmedAsync(User user); } }