oliverbooth.dev/OliverBooth.Common/Services/IBlogUserService.cs
Oliver Booth 6ec4103a3a
refactor: separate Markdig extensions from project
Also introduces .Common project to house common references and types
2024-05-05 02:18:20 +01:00

24 lines
802 B
C#

using System.Diagnostics.CodeAnalysis;
using OliverBooth.Common.Data.Blog;
namespace OliverBooth.Common.Services;
/// <summary>
/// Represents a service for managing users.
/// </summary>
public interface IBlogUserService
{
/// <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);
}