mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
Add user avatar and profile feature, consolidate Auth and UserManagement features (#257)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Features.Auth.Repository;
|
||||
using MediatR;
|
||||
|
||||
namespace Features.Auth.Commands.Profile.CreateUserProfile;
|
||||
|
||||
/// <summary>Handles <see cref="CreateUserProfileCommand" /> by inserting the new profile record.</summary>
|
||||
public class CreateUserProfileHandler(IUserProfileRepository userProfileRepository)
|
||||
: IRequestHandler<CreateUserProfileCommand, Guid>
|
||||
{
|
||||
public Task<Guid> Handle(
|
||||
CreateUserProfileCommand request,
|
||||
CancellationToken cancellationToken
|
||||
) =>
|
||||
userProfileRepository.CreateProfileAsync(
|
||||
request.UserAccountId,
|
||||
request.Biography,
|
||||
cancellationToken
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user