mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
14 lines
384 B
C#
14 lines
384 B
C#
using Features.UserManagement.Repository;
|
|
using MediatR;
|
|
|
|
namespace Features.UserManagement.Commands.UpdateUser;
|
|
|
|
public class UpdateUserHandler(IUserAccountRepository repository)
|
|
: IRequestHandler<UpdateUserCommand>
|
|
{
|
|
public Task Handle(UpdateUserCommand request, CancellationToken cancellationToken)
|
|
{
|
|
return repository.UpdateAsync(request.UserAccount);
|
|
}
|
|
}
|