Refactored endpoints to be more functional and more expressive
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace PostFundManagement.Domain.Errors;
|
||||
|
||||
public sealed class NotFoundError : Error
|
||||
{
|
||||
public static NotFoundError New { get; } = new();
|
||||
|
||||
public NotFoundError() : base(string.Empty) { }
|
||||
|
||||
public NotFoundError(string Message) : base(Message) { }
|
||||
|
||||
public static NotFoundError Create() => new();
|
||||
|
||||
public static NotFoundError Create(string message) => new(message);
|
||||
}
|
||||
Reference in New Issue
Block a user