2023-08-12 19:13:47 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2023-08-13 16:33:54 +00:00
|
|
|
using OliverBooth.Data.Blog;
|
2023-08-12 19:13:47 +00:00
|
|
|
|
2023-08-13 16:33:54 +00:00
|
|
|
namespace OliverBooth.Services;
|
2023-08-12 19:13:47 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a service for managing users.
|
|
|
|
/// </summary>
|
2023-08-13 16:33:54 +00:00
|
|
|
public interface IBlogUserService
|
2023-08-12 19:13:47 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Attempts to find a user with the specified ID.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id">The ID of the user to find.</param>
|
|
|
|
/// <param name="user">
|
|
|
|
/// When this method returns, contains the user with the specified ID, if the user is found; otherwise,
|
|
|
|
/// <see langword="null" />.
|
|
|
|
/// </param>
|
|
|
|
/// <returns>
|
|
|
|
/// <see langword="true" /> if a user with the specified ID is found; otherwise, <see langword="false" />.
|
|
|
|
/// </returns>
|
|
|
|
bool TryGetUser(Guid id, [NotNullWhen(true)] out IUser? user);
|
|
|
|
}
|