Fixed namespace error.

This commit is contained in:
2026-04-10 19:30:04 +05:00
parent 8eb8cd4fbf
commit 715893fb1f
+14
View File
@@ -0,0 +1,14 @@
using LibraryApp.Domain;
namespace LibraryApp.Services;
public record Result
{
public required bool IsSuccess { get; init; }
public Error? ErrorMessage { get; init; }
private Result() { }
public static Result Success() => new Result { IsSuccess = true };
public static Result Failure(string errorMessage) => new Result { IsSuccess = false, ErrorMessage = errorMessage };
}