namespace Lumina.Presentation.Web.Common.Primitives; /// /// Provides predefined success results for operations that don't return meaningful data, and factory methods for results. /// public static class Result { /// /// Represents a successful operation. /// public static Success Success { get; } = new(); /// /// Represents a successful creation operation. /// public static Created Created { get; } = new(); /// /// Represents a successful update operation. /// public static Updated Updated { get; } = new(); /// /// Represents a successful deletion operation. /// public static Deleted Deleted { get; } = new(); /// /// Creates a successful result wrapping the provided value. /// /// The type of the value to wrap. /// The value to wrap in a successful result. /// A successful result containing the provided value. public static Result From(TValue value) { return Result.Success(value); } }