/// <summary> /// Get 'not found' status wrapped in a <see cref="Task{T}"/>. 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 Task <IDomainResult <TValue> > NotFoundTask <TValue>(IEnumerable <string> messages) => DomainResult <TValue> .NotFoundTask(messages);
/// <summary> /// Get 'not found' status wrapped in a <see cref="Task{T}"/>. 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 Task <IDomainResult <TValue> > NotFoundTask <TValue>(string?message = null) => DomainResult <TValue> .NotFoundTask(message);