// Aliases for DomainResult<TValue> extensions [PUBLIC, STATIC] #region Extensions of 'IDomainResult<T>' [STATIC, PUBLIC] ------------- /// <summary> /// Get 'success' status with a value. Gets converted to HTTP code 200 (Ok) /// </summary> /// <typeparam name="TValue"> The value type </typeparam> /// <param name="value"> The value to be returned </param> public static IDomainResult <TValue> Success <TValue>(TValue value) => DomainResult <TValue> .Success(value);
/// <summary> /// Creates a new instance with 'success' status and a value /// </summary> /// <param name="value"> The value to be returned </param> protected DomainResult(TValue value) : this(value, DomainResult.Success()) { }