using Features.Users.Repository; using MediatR; namespace Features.Users.Commands.Profile.UpdateBiography; /// Handles by updating the stored biography. public class UpdateBiographyHandler(IUserProfileRepository userProfileRepository) : IRequestHandler { /// /// Thrown when no user profile exists for the given user account. /// public Task Handle(UpdateBiographyCommand request, CancellationToken cancellationToken) => userProfileRepository.UpdateBiographyAsync( request.UserAccountId, request.Biography, cancellationToken ); }