Sign in , out ,register.

This commit is contained in:
Burak Kaan Köse
2026-03-16 01:33:27 +01:00
parent 921c3bef93
commit 37c1bd3f62
35 changed files with 1195 additions and 30 deletions
@@ -0,0 +1,25 @@
#nullable enable
using Wino.Core.Domain.Entities.Shared;
namespace Wino.Core.Domain.Models.Accounts;
public sealed class WinoAccountOperationResult
{
public bool IsSuccess { get; init; }
public string? ErrorCode { get; init; }
public WinoAccount? Account { get; init; }
public static WinoAccountOperationResult Success(WinoAccount account)
=> new()
{
IsSuccess = true,
Account = account
};
public static WinoAccountOperationResult Failure(string? errorCode)
=> new()
{
IsSuccess = false,
ErrorCode = errorCode
};
}