/// <summary> /// Initializes a <see cref="IErrorInfo"/> instance for object not found. /// </summary> /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param> /// <param name="argument">The argument name.</param> /// <param name="value">The argument value.</param> /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns> public static IErrorInfo NotFound(this IErrorInfo errorInfo, string argument, IUuidSource value) => errorInfo.NotFound(argument, value?.Uuid);
/// <summary> /// Initializes a <see cref="IErrorInfo"/> instance for object not found. /// </summary> /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param> /// <param name="argument">The argument name.</param> /// <param name="value">The argument value.</param> /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns> public static IErrorInfo NotFound(this IErrorInfo errorInfo, string argument, IRequestUuidSource value) { return(errorInfo.NotFound(argument, value?.RequestUuid)); }
/// <summary> /// Initializes a <see cref="IErrorInfo"/> instance for object not found. /// </summary> /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param> /// <param name="value">The argument value.</param> /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns> public static IErrorInfo NotFound(this IErrorInfo errorInfo, IRequestUuidSource value) => errorInfo.NotFound(value?.RequestUuid);