Oliver Booth
0a9c2e82d5
CORS was "cors"ing some issues (heh). But also it is easier to maintain this way. Development was made much more difficult when I separated it. Combining it all also improves SEO
24 lines
788 B
C#
24 lines
788 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using OliverBooth.Data.Blog;
|
|
|
|
namespace OliverBooth.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);
|
|
}
|