24 lines
789 B
C#
24 lines
789 B
C#
|
using System.Diagnostics.CodeAnalysis;
|
||
|
using OliverBooth.Blog.Data;
|
||
|
|
||
|
namespace OliverBooth.Blog.Services;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Represents a service for managing users.
|
||
|
/// </summary>
|
||
|
public interface IUserService
|
||
|
{
|
||
|
/// <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);
|
||
|
}
|