/// <summary> /// Get 'Unauthorized' status. Gets converted to HTTP code 403 (Forbidden) /// </summary> /// <typeparam name="TValue"> The expected value type if the operation was successful </typeparam> /// <param name="message"> Optional message </param> public static IDomainResult <TValue> Unauthorized <TValue>(string?message = null) => DomainResult <TValue> .Unauthorized(message);
/// <summary> /// Get 'Unauthorized' status. Gets converted to HTTP code 403 (Forbidden) /// </summary> /// <param name="message"> Optional message </param> public static IDomainResult <TValue> Unauthorized(string?message = null) => new DomainResult <TValue>(DomainResult.Unauthorized(message));