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