New way to interact with AspNet users

This commit is contained in:
Dominic Villemure
2024-04-09 23:38:26 -04:00
parent 47121b0539
commit 49a10198e4
13 changed files with 476 additions and 77 deletions

View File

@@ -1,10 +0,0 @@
namespace Hutopy.Domain.Entities;
public class User : BaseAuditableEntity
{
public Guid IdentityUserId { get; set; }
public required string FirstName { get; set; }
public required string LastName { get; set; }
public required string UserName { get; set; }
public required string EmailAddress { get; set; }
}

View File

@@ -1,7 +1,12 @@
namespace Hutopy.Domain.Interfaces;
using Hutopy.Domain.Models;
namespace Hutopy.Domain.Interfaces;
public interface IUserService
{
Task CreateUserAsync(string email, string userName, string password);
Task CreateUserAsync(string email, string userName, string firstName, string lastName, string password);
Task<UserModel?> FindUserByIdAsync(string id);
Task<UserModel?> FindUserByEmailAsync(string id);
}

View File

@@ -0,0 +1,8 @@
namespace Hutopy.Domain.Models;
public class UserModel
{
public string? Id { get; set; }
public string? UserName { get; set; }
public string? Email { get; set; }
}